Files
N_XLJC--MX/XLXLXH_DRList.aspx.cs
T
2026-08-21 17:02:49 +08:00

1450 lines
81 KiB
C#

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using GThinking.N_MISPRO;
using GThinking.N_MISPRO.Data;
using GThinking.N_MODEL.Page;
using GThinking.N_MISPRO.Utility;
using System.Data.Common;
using System.Collections.Generic;
using GThinking.N_PUBLIC2;
namespace GThinking.N_XLJC
{
public partial class XLXLXH_DRList : SingleGridBase
{
#region Page类事件继承
private XLDRQS entity = new XLDRQS();
protected void Page_Load(object sender, EventArgs e)
{
this.UMID = 101421000;
this.UMName = "导入缺省";
this.CurMaster = Master;
this.ModuleGV = grdGrid;
this.CurEntity = entity;
this.PageHeight = 500;
this.PageWidth = 700;
base.DataKeyNames = new string[] { "CPYTID" };
if (!IsPostBack)
{
this.Master.EnableNewBtn = false;
this.Master.EnableCopyBtn = false;
this.Master.EnableEditBtn = false;
this.Master.EnableDeleteBtn = false;
this.Master.EnableAttachBtn = false;
this.Master.EnablePrintBtn = false;
this.Master.EnableSearchBtn = false;
this.Master.EnableQueryBtn = false;
this.Master.EnableViewBtn = false;
}
base.InitPage();
if (!IsPostBack)
{
grdGrid.Columns[0].Visible = false;
Master_OnStandardQuery(null, null);
}
}
#endregion
#region 模板事件继承
protected override void Master_OnStandardQuery(object sender, EventArgs e)
{
string sCPYT = "";
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
TSQL sSql = new TSQL(dberp);
sSql.Clear();
sSql.Add("SELECT distinct XLXHB_CPYT from XLXHB where 1=1");
DataSet ds = dberp.OpenDataSet(sSql);
for(int i=0;i<ds.Tables[0].Rows.Count;i++)
{
sCPYT += ds.Tables[0].Rows[i][0].ToString().Trim();
sCPYT += ",";
}
DataSet dsCPYT = new DataSet();
//base.InitEntityByCondition();
entity.EntityTable.QuerySelSql = "select 1 from XLXHB where 1<>1";
base.Master_OnStandardQuery(sender, e);
dsCPYT.Tables.Add("XLXHB");
dsCPYT.Tables[0].Columns.Add("CPYTID");
dsCPYT.Tables[0].Columns.Add("CPYTMC");
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1C2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT1 = dsCPYT.Tables[0].NewRow();
InsertCPYT1["CPYTID"] = "P1C2";
InsertCPYT1["CPYTMC"] = "P1C2|电线-C|触头用、电车线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT1);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1H1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT2 = dsCPYT.Tables[0].NewRow();
InsertCPYT2["CPYTID"] = "P1H1";
InsertCPYT2["CPYTMC"] = "P1H1|裸电线-H|电焊机用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT2);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1J0")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT3 = dsCPYT.Tables[0].NewRow();
InsertCPYT3["CPYTID"] = "P1J0";
InsertCPYT3["CPYTMC"] = "P1J0|裸电线-J|绞线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT3);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1K1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT4 = dsCPYT.Tables[0].NewRow();
InsertCPYT4["CPYTID"] = "P1K1";
InsertCPYT4["CPYTMC"] = "P1K1|裸电线-K|扩径形";
dsCPYT.Tables[0].Rows.Add(InsertCPYT4);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1M1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT5 = dsCPYT.Tables[0].NewRow();
InsertCPYT5["CPYTID"] = "P1M1";
InsertCPYT5["CPYTMC"] = "P1M1|裸电线-M|母线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT5);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1P1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT6 = dsCPYT.Tables[0].NewRow();
InsertCPYT6["CPYTID"] = "P1P1";
InsertCPYT6["CPYTMC"] = "P1P1|裸电线-P|铜排";
dsCPYT.Tables[0].Rows.Add(InsertCPYT6);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1QG")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT7 = dsCPYT.Tables[0].NewRow();
InsertCPYT7["CPYTID"] = "P1QG";
InsertCPYT7["CPYTMC"] = "P1QG|裸电线-QG|汽车蓄电池线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT7);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1S1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT8 = dsCPYT.Tables[0].NewRow();
InsertCPYT8["CPYTID"] = "P1S1";
InsertCPYT8["CPYTMC"] = "P1S1|裸电线-S|电刷线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT8);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1T1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT9 = dsCPYT.Tables[0].NewRow();
InsertCPYT9["CPYTID"] = "P1T1";
InsertCPYT9["CPYTMC"] = "P1T1|裸电线-T|天线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT9);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1Z1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT10 = dsCPYT.Tables[0].NewRow();
InsertCPYT10["CPYTID"] = "P1Z1";
InsertCPYT10["CPYTMC"] = "P1Z1|裸电线-Z|自阻尼";
dsCPYT.Tables[0].Rows.Add(InsertCPYT10);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P200")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT11 = dsCPYT.Tables[0].NewRow();
InsertCPYT11["CPYTID"] = "P200";
InsertCPYT11["CPYTMC"] = "P200|电力电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT11);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P201")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT12 = dsCPYT.Tables[0].NewRow();
InsertCPYT12["CPYTID"] = "P201";
InsertCPYT12["CPYTMC"] = "P201|电力电缆-同轴电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT12);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P202")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT13 = dsCPYT.Tables[0].NewRow();
InsertCPYT13["CPYTID"] = "P202";
InsertCPYT13["CPYTMC"] = "P202|电力电缆-接地电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT13);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P203")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT14 = dsCPYT.Tables[0].NewRow();
InsertCPYT14["CPYTID"] = "P203";
InsertCPYT14["CPYTMC"] = "P203|电力电缆-矿物绝缘电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT14);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P300")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT15 = dsCPYT.Tables[0].NewRow();
InsertCPYT15["CPYTID"] = "P300";
InsertCPYT15["CPYTMC"] = "P300|装备线缆-机车线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT15);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3A1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT16 = dsCPYT.Tables[0].NewRow();
InsertCPYT16["CPYTID"] = "P3A1";
InsertCPYT16["CPYTMC"] = "P3A1|装备线缆-A|安装线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT16);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3B1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT17 = dsCPYT.Tables[0].NewRow();
InsertCPYT17["CPYTID"] = "P3B1";
InsertCPYT17["CPYTMC"] = "P3B1|装备线缆-B|绝缘布线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT17);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3BP")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT18 = dsCPYT.Tables[0].NewRow();
InsertCPYT18["CPYTID"] = "P3BP";
InsertCPYT18["CPYTMC"] = "P3BP|装备线缆-BP|变频电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT18);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3C1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT19 = dsCPYT.Tables[0].NewRow();
InsertCPYT19["CPYTID"] = "P3C1";
InsertCPYT19["CPYTMC"] = "P3C1|装备线缆-C|船用电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT19);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3CH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT20 = dsCPYT.Tables[0].NewRow();
InsertCPYT20["CPYTID"] = "P3CH";
InsertCPYT20["CPYTMC"] = "P3CH|装备线缆-CH|船用通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT20);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3CK")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT21 = dsCPYT.Tables[0].NewRow();
InsertCPYT21["CPYTID"] = "P3CK";
InsertCPYT21["CPYTMC"] = "P3CK|装备线缆-CK|船用控制电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT21);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3CS")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT22 = dsCPYT.Tables[0].NewRow();
InsertCPYT22["CPYTID"] = "P3CS";
InsertCPYT22["CPYTMC"] = "P3CS|装备线缆-CS|船用射频电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT22);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3D1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT23 = dsCPYT.Tables[0].NewRow();
InsertCPYT23["CPYTID"] = "P3D1";
InsertCPYT23["CPYTMC"] = "P3D1|装备线缆-D|电雷管引爆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT23);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3DC")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT24 = dsCPYT.Tables[0].NewRow();
InsertCPYT24["CPYTID"] = "P3DC";
InsertCPYT24["CPYTMC"] = "P3DC|装备线缆-DC|地铁车辆用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT24);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3DJ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT25 = dsCPYT.Tables[0].NewRow();
InsertCPYT25["CPYTID"] = "P3DJ";
InsertCPYT25["CPYTMC"] = "P3DJ|装备线缆-DJ|计算机";
dsCPYT.Tables[0].Rows.Add(InsertCPYT25);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3F1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT26 = dsCPYT.Tables[0].NewRow();
InsertCPYT26["CPYTID"] = "P3F1";
InsertCPYT26["CPYTMC"] = "P3F1|装备线缆-F|飞机(航空)电线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT26);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3FD")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT27 = dsCPYT.Tables[0].NewRow();
InsertCPYT27["CPYTID"] = "P3FD";
InsertCPYT27["CPYTMC"] = "P3FD|装备线缆-风力电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT27);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3FG")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT28 = dsCPYT.Tables[0].NewRow();
InsertCPYT28["CPYTID"] = "P3FG";
InsertCPYT28["CPYTMC"] = "P3FG|装备线缆-FG|飞机用高压点火";
dsCPYT.Tables[0].Rows.Add(InsertCPYT28);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3G1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT29 = dsCPYT.Tables[0].NewRow();
InsertCPYT29["CPYTID"] = "P3G1";
InsertCPYT29["CPYTMC"] = "P3G1|装备线缆-G|高压直流软电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT29);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3H3")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT30 = dsCPYT.Tables[0].NewRow();
InsertCPYT30["CPYTID"] = "P3H3";
InsertCPYT30["CPYTMC"] = "P3H3|装备线缆-H|电焊机电缆;电子轰击炉用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT30);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3HL")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT31 = dsCPYT.Tables[0].NewRow();
InsertCPYT31["CPYTID"] = "P3HL";
InsertCPYT31["CPYTMC"] = "P3HL|装备线缆-HL|核电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT31);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3J1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT32 = dsCPYT.Tables[0].NewRow();
InsertCPYT32["CPYTID"] = "P3J1";
InsertCPYT32["CPYTMC"] = "P3J1|装备线缆-J|引接线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT32);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3JK")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT33 = dsCPYT.Tables[0].NewRow();
InsertCPYT33["CPYTID"] = "P3JK";
InsertCPYT33["CPYTMC"] = "P3JK|装备线缆-JK|架空线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT33);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3K2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT34 = dsCPYT.Tables[0].NewRow();
InsertCPYT34["CPYTID"] = "P3K2";
InsertCPYT34["CPYTMC"] = "P3K2|装备线缆-K|控制电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT34);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3M2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT35 = dsCPYT.Tables[0].NewRow();
InsertCPYT35["CPYTID"] = "P3M2";
InsertCPYT35["CPYTMC"] = "P3M2|装备线缆-M|煤矿用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT35);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MC")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT36 = dsCPYT.Tables[0].NewRow();
InsertCPYT36["CPYTID"] = "P3MC";
InsertCPYT36["CPYTMC"] = "P3MC|装备线缆-MC|采煤机电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT36);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT37 = dsCPYT.Tables[0].NewRow();
InsertCPYT37["CPYTID"] = "P3MH";
InsertCPYT37["CPYTMC"] = "P3MH|装备线缆-MH|煤矿用通信";
dsCPYT.Tables[0].Rows.Add(InsertCPYT37);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MK")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT38 = dsCPYT.Tables[0].NewRow();
InsertCPYT38["CPYTID"] = "P3MK";
InsertCPYT38["CPYTMC"] = "P3MK|装备线缆-MK|煤矿控制电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT38);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MY")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT39 = dsCPYT.Tables[0].NewRow();
InsertCPYT39["CPYTID"] = "P3MY";
InsertCPYT39["CPYTMC"] = "P3MY|装备线缆-MY|煤矿移动";
dsCPYT.Tables[0].Rows.Add(InsertCPYT39);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MZ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT40 = dsCPYT.Tables[0].NewRow();
InsertCPYT40["CPYTID"] = "P3MZ";
InsertCPYT40["CPYTMC"] = "P3MZ|装备线缆-MZ|煤矿电钻";
dsCPYT.Tables[0].Rows.Add(InsertCPYT40);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3N1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT41 = dsCPYT.Tables[0].NewRow();
InsertCPYT41["CPYTID"] = "P3N1";
InsertCPYT41["CPYTMC"] = "P3N1|装备线缆-N|农用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT41);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3P2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT42 = dsCPYT.Tables[0].NewRow();
InsertCPYT42["CPYTID"] = "P3P2";
InsertCPYT42["CPYTMC"] = "P3P2|装备线缆-P|信号电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT42);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3Q1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT43 = dsCPYT.Tables[0].NewRow();
InsertCPYT43["CPYTID"] = "P3Q1";
InsertCPYT43["CPYTMC"] = "P3Q1|装备线缆-Q|汽车用线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT43);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3R1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT44 = dsCPYT.Tables[0].NewRow();
InsertCPYT44["CPYTID"] = "P3R1";
InsertCPYT44["CPYTMC"] = "P3R1|装备线缆-R|绝缘软线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT44);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3S2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT45 = dsCPYT.Tables[0].NewRow();
InsertCPYT45["CPYTID"] = "P3S2";
InsertCPYT45["CPYTMC"] = "P3S2|装备线缆-S|射频电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT45);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3T2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT46 = dsCPYT.Tables[0].NewRow();
InsertCPYT46["CPYTID"] = "P3T2";
InsertCPYT46["CPYTMC"] = "P3T2|装备线缆-T|梯缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT46);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3U1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT47 = dsCPYT.Tables[0].NewRow();
InsertCPYT47["CPYTID"] = "P3U1";
InsertCPYT47["CPYTMC"] = "P3U1|装备线缆-U|矿用电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT47);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UB")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT48 = dsCPYT.Tables[0].NewRow();
InsertCPYT48["CPYTID"] = "P3UB";
InsertCPYT48["CPYTMC"] = "P3UB|装备线缆-UB|矿用雷管";
dsCPYT.Tables[0].Rows.Add(InsertCPYT48);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UC")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT49 = dsCPYT.Tables[0].NewRow();
InsertCPYT49["CPYTID"] = "P3UC";
InsertCPYT49["CPYTMC"] = "P3UC|装备线缆-UC|采煤机电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT49);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT50 = dsCPYT.Tables[0].NewRow();
InsertCPYT50["CPYTID"] = "P3UH";
InsertCPYT50["CPYTMC"] = "P3UH|装备线缆-UH|矿用通信";
dsCPYT.Tables[0].Rows.Add(InsertCPYT50);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UM")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT51 = dsCPYT.Tables[0].NewRow();
InsertCPYT51["CPYTID"] = "P3UM";
InsertCPYT51["CPYTMC"] = "P3UM|装备线缆-UM|矿工帽";
dsCPYT.Tables[0].Rows.Add(InsertCPYT51);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UY")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT52 = dsCPYT.Tables[0].NewRow();
InsertCPYT52["CPYTID"] = "P3UY";
InsertCPYT52["CPYTMC"] = "P3UY|装备线缆-UY|矿用移动";
dsCPYT.Tables[0].Rows.Add(InsertCPYT52);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UZ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT53 = dsCPYT.Tables[0].NewRow();
InsertCPYT53["CPYTID"] = "P3UZ";
InsertCPYT53["CPYTMC"] = "P3UZ|装备线缆-UZ|矿用电钻";
dsCPYT.Tables[0].Rows.Add(InsertCPYT53);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3W1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT54 = dsCPYT.Tables[0].NewRow();
InsertCPYT54["CPYTID"] = "P3W1";
InsertCPYT54["CPYTMC"] = "P3W1|装备线缆-W|石油和地质勘探用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT54);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3W2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT55 = dsCPYT.Tables[0].NewRow();
InsertCPYT55["CPYTID"] = "P3W2";
InsertCPYT55["CPYTMC"] = "P3W2|装备线缆-WQJ|潜油泵引接电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT55);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3WJ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT56 = dsCPYT.Tables[0].NewRow();
InsertCPYT56["CPYTID"] = "P3WJ";
InsertCPYT56["CPYTMC"] = "P3WJ|装备线缆-WJ|野外测井用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT56);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3WQ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT57 = dsCPYT.Tables[0].NewRow();
InsertCPYT57["CPYTID"] = "P3WQ";
InsertCPYT57["CPYTMC"] = "P3WQ|装备线缆-WQ|潜油泵电力电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT57);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3WT")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT58 = dsCPYT.Tables[0].NewRow();
InsertCPYT58["CPYTID"] = "P3WT";
InsertCPYT58["CPYTMC"] = "P3WT|装备线缆-WT|物探专用电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT58);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3WY")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT59 = dsCPYT.Tables[0].NewRow();
InsertCPYT59["CPYTID"] = "P3WY";
InsertCPYT59["CPYTMC"] = "P3WY|装备线缆-WY|野外移动";
dsCPYT.Tables[0].Rows.Add(InsertCPYT59);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3X1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT60 = dsCPYT.Tables[0].NewRow();
InsertCPYT60["CPYTID"] = "P3X1";
InsertCPYT60["CPYTMC"] = "P3X1|装备线缆-X|X光机电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT60);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3Y1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT61 = dsCPYT.Tables[0].NewRow();
InsertCPYT61["CPYTID"] = "P3Y1";
InsertCPYT61["CPYTMC"] = "P3Y1|装备线缆-Y|移动用软电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT61);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3YH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT62 = dsCPYT.Tables[0].NewRow();
InsertCPYT62["CPYTID"] = "P3YH";
InsertCPYT62["CPYTMC"] = "P3YH|装备线缆-YH|电焊机电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT62);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3YT")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT63 = dsCPYT.Tables[0].NewRow();
InsertCPYT63["CPYTID"] = "P3YT";
InsertCPYT63["CPYTMC"] = "P3YT|装备线缆-YT|电梯电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT63);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4CJ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT64 = dsCPYT.Tables[0].NewRow();
InsertCPYT64["CPYTID"] = "P4CJ";
InsertCPYT64["CPYTMC"] = "P4CJ|光缆-CJ|局(室)内光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT64);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4E1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT65 = dsCPYT.Tables[0].NewRow();
InsertCPYT65["CPYTID"] = "P4E1";
InsertCPYT65["CPYTMC"] = "P4E1|通信电缆-E|耳机用电线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT65);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GD")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT66 = dsCPYT.Tables[0].NewRow();
InsertCPYT66["CPYTID"] = "P4GD";
InsertCPYT66["CPYTMC"] = "P4GD|光缆-GD|光电综合光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT66);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT67 = dsCPYT.Tables[0].NewRow();
InsertCPYT67["CPYTID"] = "P4GH";
InsertCPYT67["CPYTMC"] = "P4GH|光缆-GH|海底光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT67);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GM")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT68 = dsCPYT.Tables[0].NewRow();
InsertCPYT68["CPYTID"] = "P4GM";
InsertCPYT68["CPYTMC"] = "P4GM|光缆-GM|移动式光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT68);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GS")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT69 = dsCPYT.Tables[0].NewRow();
InsertCPYT69["CPYTID"] = "P4GS";
InsertCPYT69["CPYTMC"] = "P4GS|光缆-GS|设备内光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT69);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GT")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT70 = dsCPYT.Tables[0].NewRow();
InsertCPYT70["CPYTID"] = "P4GT";
InsertCPYT70["CPYTMC"] = "P4GT|光缆-GT|特殊光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT70);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GY")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT71 = dsCPYT.Tables[0].NewRow();
InsertCPYT71["CPYTID"] = "P4GY";
InsertCPYT71["CPYTMC"] = "P4GY|光缆-GY|野外光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT71);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4H0")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT72 = dsCPYT.Tables[0].NewRow();
InsertCPYT72["CPYTID"] = "P4H0";
InsertCPYT72["CPYTMC"] = "P4H0|通信电缆-HO|同轴电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT72);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4H2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT73 = dsCPYT.Tables[0].NewRow();
InsertCPYT73["CPYTID"] = "P4H2";
InsertCPYT73["CPYTMC"] = "P4H2|通信电缆-H|市内通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT73);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HB")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT74 = dsCPYT.Tables[0].NewRow();
InsertCPYT74["CPYTID"] = "P4HB";
InsertCPYT74["CPYTMC"] = "P4HB|通信电缆-HB|电话布线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT74);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HE")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT75 = dsCPYT.Tables[0].NewRow();
InsertCPYT75["CPYTID"] = "P4HE";
InsertCPYT75["CPYTMC"] = "P4HE|通信电缆-HE|长途通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT75);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT76 = dsCPYT.Tables[0].NewRow();
InsertCPYT76["CPYTID"] = "P4HH";
InsertCPYT76["CPYTMC"] = "P4HH|通信电缆-HH|海底通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT76);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HJ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT77 = dsCPYT.Tables[0].NewRow();
InsertCPYT77["CPYTID"] = "P4HJ";
InsertCPYT77["CPYTMC"] = "P4HJ|通信电缆-HJ|局用电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT77);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HP")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT78 = dsCPYT.Tables[0].NewRow();
InsertCPYT78["CPYTID"] = "P4HP";
InsertCPYT78["CPYTMC"] = "P4HP|通信电缆-HP|配线电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT78);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HR")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT79 = dsCPYT.Tables[0].NewRow();
InsertCPYT79["CPYTID"] = "P4HR";
InsertCPYT79["CPYTMC"] = "P4HR|通信电缆-HR|电话软线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT79);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HU")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT80 = dsCPYT.Tables[0].NewRow();
InsertCPYT80["CPYTID"] = "P4HU";
InsertCPYT80["CPYTMC"] = "P4HU|通信电缆-HU|矿用电话电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT80);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HW")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT81 = dsCPYT.Tables[0].NewRow();
InsertCPYT81["CPYTID"] = "P4HW";
InsertCPYT81["CPYTMC"] = "P4HW|通信电缆-HW|岛屿通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT81);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4J2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT82 = dsCPYT.Tables[0].NewRow();
InsertCPYT82["CPYTID"] = "P4J2";
InsertCPYT82["CPYTMC"] = "P4J2|通信电缆-J|交换机用电线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT82);
}
entity.GridDataBind(grdGrid, tSession);
entity.GridDataBind(grdGrid, dsCPYT.Tables[0], dsCPYT.Tables[0].Rows.Count);
grdGrid.DataSource = dsCPYT;
}
protected override void moduleGV_RowDataBound(object sender, GridViewRowEventArgs e)
{
//if (e.Row.RowType == DataControlRowType.DataRow)
//{
// LinkPageParam.AddString("CPYTID", grdGrid.DataKeys[e.Row.RowIndex]["CPYTID"].ToString().Trim());
//}
base.moduleGV_RowDataBound(sender, e);
}
protected override void moduleGV_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
string sCPYT = "";
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
TSQL sSql = new TSQL(dberp);
sSql.Clear();
sSql.Add("SELECT distinct XLXHB_CPYT from XLXHB where 1=1");
DataSet ds = dberp.OpenDataSet(sSql);
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
sCPYT += ds.Tables[0].Rows[i][0].ToString().Trim();
sCPYT += ",";
}
//base.InitEntityByCondition();
base.moduleGV_PageIndexChanging(sender, e);
DataSet dsCPYT = new DataSet();
entity.EntityTable.QuerySelSql = "select 1 from XLXHB where 1<>1";
grdGrid.SelectedIndex = -1;
dsCPYT.Tables.Add("XLXHB");
dsCPYT.Tables[0].Columns.Add("CPYTID");
dsCPYT.Tables[0].Columns.Add("CPYTMC");
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1C2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT1 = dsCPYT.Tables[0].NewRow();
InsertCPYT1["CPYTID"] = "P1C2";
InsertCPYT1["CPYTMC"] = "P1C2|电线-C|触头用、电车线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT1);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1H1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT2 = dsCPYT.Tables[0].NewRow();
InsertCPYT2["CPYTID"] = "P1H1";
InsertCPYT2["CPYTMC"] = "P1H1|裸电线-H|电焊机用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT2);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1J0")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT3 = dsCPYT.Tables[0].NewRow();
InsertCPYT3["CPYTID"] = "P1J0";
InsertCPYT3["CPYTMC"] = "P1J0|裸电线-J|绞线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT3);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1K1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT4 = dsCPYT.Tables[0].NewRow();
InsertCPYT4["CPYTID"] = "P1K1";
InsertCPYT4["CPYTMC"] = "P1K1|裸电线-K|扩径形";
dsCPYT.Tables[0].Rows.Add(InsertCPYT4);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1M1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT5 = dsCPYT.Tables[0].NewRow();
InsertCPYT5["CPYTID"] = "P1M1";
InsertCPYT5["CPYTMC"] = "P1M1|裸电线-M|母线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT5);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1P1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT6 = dsCPYT.Tables[0].NewRow();
InsertCPYT6["CPYTID"] = "P1P1";
InsertCPYT6["CPYTMC"] = "P1P1|裸电线-P|铜排";
dsCPYT.Tables[0].Rows.Add(InsertCPYT6);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1QG")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT7 = dsCPYT.Tables[0].NewRow();
InsertCPYT7["CPYTID"] = "P1QG";
InsertCPYT7["CPYTMC"] = "P1QG|裸电线-QG|汽车蓄电池线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT7);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1S1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT8 = dsCPYT.Tables[0].NewRow();
InsertCPYT8["CPYTID"] = "P1S1";
InsertCPYT8["CPYTMC"] = "P1S1|裸电线-S|电刷线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT8);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1T1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT9 = dsCPYT.Tables[0].NewRow();
InsertCPYT9["CPYTID"] = "P1T1";
InsertCPYT9["CPYTMC"] = "P1T1|裸电线-T|天线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT9);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P1Z1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT10 = dsCPYT.Tables[0].NewRow();
InsertCPYT10["CPYTID"] = "P1Z1";
InsertCPYT10["CPYTMC"] = "P1Z1|裸电线-Z|自阻尼";
dsCPYT.Tables[0].Rows.Add(InsertCPYT10);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P200")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT11 = dsCPYT.Tables[0].NewRow();
InsertCPYT11["CPYTID"] = "P200";
InsertCPYT11["CPYTMC"] = "P200|电力电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT11);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P201")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT12 = dsCPYT.Tables[0].NewRow();
InsertCPYT12["CPYTID"] = "P201";
InsertCPYT12["CPYTMC"] = "P201|电力电缆-同轴电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT12);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P202")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT13 = dsCPYT.Tables[0].NewRow();
InsertCPYT13["CPYTID"] = "P202";
InsertCPYT13["CPYTMC"] = "P202|电力电缆-接地电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT13);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P203")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT14 = dsCPYT.Tables[0].NewRow();
InsertCPYT14["CPYTID"] = "P203";
InsertCPYT14["CPYTMC"] = "P203|电力电缆-矿物绝缘电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT14);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P300")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT15 = dsCPYT.Tables[0].NewRow();
InsertCPYT15["CPYTID"] = "P300";
InsertCPYT15["CPYTMC"] = "P300|装备线缆-机车线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT15);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3A1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT16 = dsCPYT.Tables[0].NewRow();
InsertCPYT16["CPYTID"] = "P3A1";
InsertCPYT16["CPYTMC"] = "P3A1|装备线缆-A|安装线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT16);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3B1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT17 = dsCPYT.Tables[0].NewRow();
InsertCPYT17["CPYTID"] = "P3B1";
InsertCPYT17["CPYTMC"] = "P3B1|装备线缆-B|绝缘布线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT17);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3BP")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT18 = dsCPYT.Tables[0].NewRow();
InsertCPYT18["CPYTID"] = "P3BP";
InsertCPYT18["CPYTMC"] = "P3BP|装备线缆-BP|变频电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT18);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3C1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT19 = dsCPYT.Tables[0].NewRow();
InsertCPYT19["CPYTID"] = "P3C1";
InsertCPYT19["CPYTMC"] = "P3C1|装备线缆-C|船用电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT19);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3CH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT20 = dsCPYT.Tables[0].NewRow();
InsertCPYT20["CPYTID"] = "P3CH";
InsertCPYT20["CPYTMC"] = "P3CH|装备线缆-CH|船用通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT20);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3CK")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT21 = dsCPYT.Tables[0].NewRow();
InsertCPYT21["CPYTID"] = "P3CK";
InsertCPYT21["CPYTMC"] = "P3CK|装备线缆-CK|船用控制电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT21);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3CS")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT22 = dsCPYT.Tables[0].NewRow();
InsertCPYT22["CPYTID"] = "P3CS";
InsertCPYT22["CPYTMC"] = "P3CS|装备线缆-CS|船用射频电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT22);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3D1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT23 = dsCPYT.Tables[0].NewRow();
InsertCPYT23["CPYTID"] = "P3D1";
InsertCPYT23["CPYTMC"] = "P3D1|装备线缆-D|电雷管引爆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT23);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3DC")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT24 = dsCPYT.Tables[0].NewRow();
InsertCPYT24["CPYTID"] = "P3DC";
InsertCPYT24["CPYTMC"] = "P3DC|装备线缆-DC|地铁车辆用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT24);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3DJ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT25 = dsCPYT.Tables[0].NewRow();
InsertCPYT25["CPYTID"] = "P3DJ";
InsertCPYT25["CPYTMC"] = "P3DJ|装备线缆-DJ|计算机";
dsCPYT.Tables[0].Rows.Add(InsertCPYT25);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3F1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT26 = dsCPYT.Tables[0].NewRow();
InsertCPYT26["CPYTID"] = "P3F1";
InsertCPYT26["CPYTMC"] = "P3F1|装备线缆-F|飞机(航空)电线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT26);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3FD")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT27 = dsCPYT.Tables[0].NewRow();
InsertCPYT27["CPYTID"] = "P3FD";
InsertCPYT27["CPYTMC"] = "P3FD|装备线缆-风力电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT27);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3FG")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT28 = dsCPYT.Tables[0].NewRow();
InsertCPYT28["CPYTID"] = "P3FG";
InsertCPYT28["CPYTMC"] = "P3FG|装备线缆-FG|飞机用高压点火";
dsCPYT.Tables[0].Rows.Add(InsertCPYT28);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3G1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT29 = dsCPYT.Tables[0].NewRow();
InsertCPYT29["CPYTID"] = "P3G1";
InsertCPYT29["CPYTMC"] = "P3G1|装备线缆-G|高压直流软电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT29);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3H3")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT30 = dsCPYT.Tables[0].NewRow();
InsertCPYT30["CPYTID"] = "P3H3";
InsertCPYT30["CPYTMC"] = "P3H3|装备线缆-H|电焊机电缆;电子轰击炉用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT30);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3HL")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT31 = dsCPYT.Tables[0].NewRow();
InsertCPYT31["CPYTID"] = "P3HL";
InsertCPYT31["CPYTMC"] = "P3HL|装备线缆-HL|核电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT31);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3J1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT32 = dsCPYT.Tables[0].NewRow();
InsertCPYT32["CPYTID"] = "P3J1";
InsertCPYT32["CPYTMC"] = "P3J1|装备线缆-J|引接线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT32);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3JK")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT33 = dsCPYT.Tables[0].NewRow();
InsertCPYT33["CPYTID"] = "P3JK";
InsertCPYT33["CPYTMC"] = "P3JK|装备线缆-JK|架空线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT33);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3K2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT34 = dsCPYT.Tables[0].NewRow();
InsertCPYT34["CPYTID"] = "P3K2";
InsertCPYT34["CPYTMC"] = "P3K2|装备线缆-K|控制电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT34);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3M2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT35 = dsCPYT.Tables[0].NewRow();
InsertCPYT35["CPYTID"] = "P3M2";
InsertCPYT35["CPYTMC"] = "P3M2|装备线缆-M|煤矿用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT35);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MC")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT36 = dsCPYT.Tables[0].NewRow();
InsertCPYT36["CPYTID"] = "P3MC";
InsertCPYT36["CPYTMC"] = "P3MC|装备线缆-MC|采煤机电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT36);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT37 = dsCPYT.Tables[0].NewRow();
InsertCPYT37["CPYTID"] = "P3MH";
InsertCPYT37["CPYTMC"] = "P3MH|装备线缆-MH|煤矿用通信";
dsCPYT.Tables[0].Rows.Add(InsertCPYT37);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MK")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT38 = dsCPYT.Tables[0].NewRow();
InsertCPYT38["CPYTID"] = "P3MK";
InsertCPYT38["CPYTMC"] = "P3MK|装备线缆-MK|煤矿控制电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT38);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MY")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT39 = dsCPYT.Tables[0].NewRow();
InsertCPYT39["CPYTID"] = "P3MY";
InsertCPYT39["CPYTMC"] = "P3MY|装备线缆-MY|煤矿移动";
dsCPYT.Tables[0].Rows.Add(InsertCPYT39);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3MZ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT40 = dsCPYT.Tables[0].NewRow();
InsertCPYT40["CPYTID"] = "P3MZ";
InsertCPYT40["CPYTMC"] = "P3MZ|装备线缆-MZ|煤矿电钻";
dsCPYT.Tables[0].Rows.Add(InsertCPYT40);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3N1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT41 = dsCPYT.Tables[0].NewRow();
InsertCPYT41["CPYTID"] = "P3N1";
InsertCPYT41["CPYTMC"] = "P3N1|装备线缆-N|农用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT41);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3P2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT42 = dsCPYT.Tables[0].NewRow();
InsertCPYT42["CPYTID"] = "P3P2";
InsertCPYT42["CPYTMC"] = "P3P2|装备线缆-P|信号电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT42);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3Q1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT43 = dsCPYT.Tables[0].NewRow();
InsertCPYT43["CPYTID"] = "P3Q1";
InsertCPYT43["CPYTMC"] = "P3Q1|装备线缆-Q|汽车用线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT43);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3R1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT44 = dsCPYT.Tables[0].NewRow();
InsertCPYT44["CPYTID"] = "P3R1";
InsertCPYT44["CPYTMC"] = "P3R1|装备线缆-R|绝缘软线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT44);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3S2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT45 = dsCPYT.Tables[0].NewRow();
InsertCPYT45["CPYTID"] = "P3S2";
InsertCPYT45["CPYTMC"] = "P3S2|装备线缆-S|射频电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT45);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3T2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT46 = dsCPYT.Tables[0].NewRow();
InsertCPYT46["CPYTID"] = "P3T2";
InsertCPYT46["CPYTMC"] = "P3T2|装备线缆-T|梯缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT46);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3U1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT47 = dsCPYT.Tables[0].NewRow();
InsertCPYT47["CPYTID"] = "P3U1";
InsertCPYT47["CPYTMC"] = "P3U1|装备线缆-U|矿用电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT47);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UB")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT48 = dsCPYT.Tables[0].NewRow();
InsertCPYT48["CPYTID"] = "P3UB";
InsertCPYT48["CPYTMC"] = "P3UB|装备线缆-UB|矿用雷管";
dsCPYT.Tables[0].Rows.Add(InsertCPYT48);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UC")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT49 = dsCPYT.Tables[0].NewRow();
InsertCPYT49["CPYTID"] = "P3UC";
InsertCPYT49["CPYTMC"] = "P3UC|装备线缆-UC|采煤机电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT49);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT50 = dsCPYT.Tables[0].NewRow();
InsertCPYT50["CPYTID"] = "P3UH";
InsertCPYT50["CPYTMC"] = "P3UH|装备线缆-UH|矿用通信";
dsCPYT.Tables[0].Rows.Add(InsertCPYT50);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UM")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT51 = dsCPYT.Tables[0].NewRow();
InsertCPYT51["CPYTID"] = "P3UM";
InsertCPYT51["CPYTMC"] = "P3UM|装备线缆-UM|矿工帽";
dsCPYT.Tables[0].Rows.Add(InsertCPYT51);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UY")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT52 = dsCPYT.Tables[0].NewRow();
InsertCPYT52["CPYTID"] = "P3UY";
InsertCPYT52["CPYTMC"] = "P3UY|装备线缆-UY|矿用移动";
dsCPYT.Tables[0].Rows.Add(InsertCPYT52);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3UZ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT53 = dsCPYT.Tables[0].NewRow();
InsertCPYT53["CPYTID"] = "P3UZ";
InsertCPYT53["CPYTMC"] = "P3UZ|装备线缆-UZ|矿用电钻";
dsCPYT.Tables[0].Rows.Add(InsertCPYT53);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3W1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT54 = dsCPYT.Tables[0].NewRow();
InsertCPYT54["CPYTID"] = "P3W1";
InsertCPYT54["CPYTMC"] = "P3W1|装备线缆-W|石油和地质勘探用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT54);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3W2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT55 = dsCPYT.Tables[0].NewRow();
InsertCPYT55["CPYTID"] = "P3W2";
InsertCPYT55["CPYTMC"] = "P3W2|装备线缆-WQJ|潜油泵引接电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT55);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3WJ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT56 = dsCPYT.Tables[0].NewRow();
InsertCPYT56["CPYTID"] = "P3WJ";
InsertCPYT56["CPYTMC"] = "P3WJ|装备线缆-WJ|野外测井用";
dsCPYT.Tables[0].Rows.Add(InsertCPYT56);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3WQ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT57 = dsCPYT.Tables[0].NewRow();
InsertCPYT57["CPYTID"] = "P3WQ";
InsertCPYT57["CPYTMC"] = "P3WQ|装备线缆-WQ|潜油泵电力电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT57);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3WT")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT58 = dsCPYT.Tables[0].NewRow();
InsertCPYT58["CPYTID"] = "P3WT";
InsertCPYT58["CPYTMC"] = "P3WT|装备线缆-WT|物探专用电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT58);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3WY")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT59 = dsCPYT.Tables[0].NewRow();
InsertCPYT59["CPYTID"] = "P3WY";
InsertCPYT59["CPYTMC"] = "P3WY|装备线缆-WY|野外移动";
dsCPYT.Tables[0].Rows.Add(InsertCPYT59);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3X1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT60 = dsCPYT.Tables[0].NewRow();
InsertCPYT60["CPYTID"] = "P3X1";
InsertCPYT60["CPYTMC"] = "P3X1|装备线缆-X|X光机电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT60);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3Y1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT61 = dsCPYT.Tables[0].NewRow();
InsertCPYT61["CPYTID"] = "P3Y1";
InsertCPYT61["CPYTMC"] = "P3Y1|装备线缆-Y|移动用软电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT61);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3YH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT62 = dsCPYT.Tables[0].NewRow();
InsertCPYT62["CPYTID"] = "P3YH";
InsertCPYT62["CPYTMC"] = "P3YH|装备线缆-YH|电焊机电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT62);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P3YT")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT63 = dsCPYT.Tables[0].NewRow();
InsertCPYT63["CPYTID"] = "P3YT";
InsertCPYT63["CPYTMC"] = "P3YT|装备线缆-YT|电梯电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT63);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4CJ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT64 = dsCPYT.Tables[0].NewRow();
InsertCPYT64["CPYTID"] = "P4CJ";
InsertCPYT64["CPYTMC"] = "P4CJ|光缆-CJ|局(室)内光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT64);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4E1")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT65 = dsCPYT.Tables[0].NewRow();
InsertCPYT65["CPYTID"] = "P4E1";
InsertCPYT65["CPYTMC"] = "P4E1|通信电缆-E|耳机用电线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT65);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GD")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT66 = dsCPYT.Tables[0].NewRow();
InsertCPYT66["CPYTID"] = "P4GD";
InsertCPYT66["CPYTMC"] = "P4GD|光缆-GD|光电综合光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT66);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT67 = dsCPYT.Tables[0].NewRow();
InsertCPYT67["CPYTID"] = "P4GH";
InsertCPYT67["CPYTMC"] = "P4GH|光缆-GH|海底光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT67);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GM")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT68 = dsCPYT.Tables[0].NewRow();
InsertCPYT68["CPYTID"] = "P4GM";
InsertCPYT68["CPYTMC"] = "P4GM|光缆-GM|移动式光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT68);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GS")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT69 = dsCPYT.Tables[0].NewRow();
InsertCPYT69["CPYTID"] = "P4GS";
InsertCPYT69["CPYTMC"] = "P4GS|光缆-GS|设备内光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT69);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GT")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT70 = dsCPYT.Tables[0].NewRow();
InsertCPYT70["CPYTID"] = "P4GT";
InsertCPYT70["CPYTMC"] = "P4GT|光缆-GT|特殊光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT70);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4GY")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT71 = dsCPYT.Tables[0].NewRow();
InsertCPYT71["CPYTID"] = "P4GY";
InsertCPYT71["CPYTMC"] = "P4GY|光缆-GY|野外光缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT71);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4H0")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT72 = dsCPYT.Tables[0].NewRow();
InsertCPYT72["CPYTID"] = "P4H0";
InsertCPYT72["CPYTMC"] = "P4H0|通信电缆-HO|同轴电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT72);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4H2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT73 = dsCPYT.Tables[0].NewRow();
InsertCPYT73["CPYTID"] = "P4H2";
InsertCPYT73["CPYTMC"] = "P4H2|通信电缆-H|市内通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT73);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HB")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT74 = dsCPYT.Tables[0].NewRow();
InsertCPYT74["CPYTID"] = "P4HB";
InsertCPYT74["CPYTMC"] = "P4HB|通信电缆-HB|电话布线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT74);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HE")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT75 = dsCPYT.Tables[0].NewRow();
InsertCPYT75["CPYTID"] = "P4HE";
InsertCPYT75["CPYTMC"] = "P4HE|通信电缆-HE|长途通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT75);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HH")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT76 = dsCPYT.Tables[0].NewRow();
InsertCPYT76["CPYTID"] = "P4HH";
InsertCPYT76["CPYTMC"] = "P4HH|通信电缆-HH|海底通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT76);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HJ")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT77 = dsCPYT.Tables[0].NewRow();
InsertCPYT77["CPYTID"] = "P4HJ";
InsertCPYT77["CPYTMC"] = "P4HJ|通信电缆-HJ|局用电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT77);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HP")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT78 = dsCPYT.Tables[0].NewRow();
InsertCPYT78["CPYTID"] = "P4HP";
InsertCPYT78["CPYTMC"] = "P4HP|通信电缆-HP|配线电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT78);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HR")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT79 = dsCPYT.Tables[0].NewRow();
InsertCPYT79["CPYTID"] = "P4HR";
InsertCPYT79["CPYTMC"] = "P4HR|通信电缆-HR|电话软线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT79);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HU")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT80 = dsCPYT.Tables[0].NewRow();
InsertCPYT80["CPYTID"] = "P4HU";
InsertCPYT80["CPYTMC"] = "P4HU|通信电缆-HU|矿用电话电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT80);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4HW")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT81 = dsCPYT.Tables[0].NewRow();
InsertCPYT81["CPYTID"] = "P4HW";
InsertCPYT81["CPYTMC"] = "P4HW|通信电缆-HW|岛屿通信电缆";
dsCPYT.Tables[0].Rows.Add(InsertCPYT81);
}
if ((PageParam.GetRTrimString("CZFS").ToString().Equals("SC") && sCPYT.Contains("P4J2")) || PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
DataRow InsertCPYT82 = dsCPYT.Tables[0].NewRow();
InsertCPYT82["CPYTID"] = "P4J2";
InsertCPYT82["CPYTMC"] = "P4J2|通信电缆-J|交换机用电线";
dsCPYT.Tables[0].Rows.Add(InsertCPYT82);
}
entity.GridDataBind(grdGrid, tSession);
entity.GridDataBind(grdGrid, dsCPYT.Tables[0], dsCPYT.Tables[0].Rows.Count);
grdGrid.DataSource = dsCPYT;
}
#endregion
#region 控件事件
protected void btnQD_Click(object sender, EventArgs e)
{
string sCPYT = GetCPYT();
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
TSQL sSql = new TSQL(dberp);
TSQL sSqlTemp = new TSQL(dberp);
DataSet ds = new DataSet();
sSql.Clear();
string sMaxBH = GetMaxBH();
if (PageParam.GetRTrimString("CZFS").ToString().Equals("DR"))
{
XLJBXHService.INSERTXLJBXHB(sCPYT);
ShowMessage("导入已完成!");
}
else if (PageParam.GetRTrimString("CZFS").ToString().Equals("SC"))
{
string[] sQSXL = XLJBXHService.XLSYXH().Split(',');
string[] sCPY = sCPYT.Split(',');
sSql.Clear();
sSql.Add("select XLXHB_XLXHID from XLXHB ");
sSql.Add(" where 1=1 and (");
for (int i = 0; i < sQSXL.Length; i++)
{
sSql.Add(" XLXHB_XLXHID = '" + sQSXL[i] +"' or ");
}
sSql.Add(" 1<>1 )");
sSql.Add(" and (");
for (int i = 0; i < sCPY.Length; i++)
{
sSql.Add(" XLXHB_CPYT = '" + sCPY[i] + "' or ");
}
sSql.Add(" 1<>1 )");
//sSql.Add(" and (" + CMISproDataBase.GetWhereEqual("XLXHB_CPYT", sCPYT) +")");
List<string> lstXLXH = new List<string>();
lstXLXH.Clear();
sSqlTemp.Clear();
sSqlTemp.Add("select distinct XLXSCLQD_XLXHID FROM XLXSCLQD where 1 = 1 ");
DataSet dsCLQD = dberp.OpenDataSet(sSqlTemp);
for (int i = 0; i < dsCLQD.Tables[0].Rows.Count; i++)
{
lstXLXH.Add(dsCLQD.Tables[0].Rows[i][0].ToString().Trim());
}
sSqlTemp.Clear();
sSqlTemp.Add("select distinct XLXSJGBMX_XLXHID FROM XLXSJGBMX where 1 = 1 ");
DataSet dsJGBMX = dberp.OpenDataSet(sSqlTemp);
for (int i = 0; i < dsJGBMX.Tables[0].Rows.Count; i++)
{
lstXLXH.Add(dsJGBMX.Tables[0].Rows[i][0].ToString().Trim());
}
sSqlTemp.Clear();
sSqlTemp.Add("delete from XLXHDYDJ");
sSqlTemp.Add("where XLXHDYDJ_XLXHID= :pXLXHDYDJ_XLXHID");
ds = dberp.OpenDataSet(sSql);
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
if (!lstXLXH.Contains(ds.Tables[0].Rows[i][0].ToString().Trim()))
{
sSqlTemp.ParamByName("pXLXHDYDJ_XLXHID").Value = ds.Tables[0].Rows[i][0].ToString().Trim();
dberp.ExecSQL(sSqlTemp);
}
}
sSqlTemp.Clear();
sSqlTemp.Add("delete from XLXHB");
sSqlTemp.Add("where 1=1 and (");
for (int i = 0; i < sQSXL.Length; i++)
{
if (!lstXLXH.Contains(sQSXL[i]))
{
sSqlTemp.Add(" XLXHB_XLXHID = '" + sQSXL[i] + "' or ");
}
}
sSqlTemp.Add(" 1<>1 ) and( ");
for (int i = 0; i < sCPY.Length; i++)
{
sSqlTemp.Add(" XLXHB_CPYT = '" + sCPY[i] + "' or ");
}
sSqlTemp.Add(" 1<>1 )");
dberp.ExecSQL(sSqlTemp);
ShowMessage("删除已完成!");
}
CloseWindow();
}
protected void btnQX_Click(object sender, EventArgs e)
{
CloseWindow();
}
#endregion
#region 自定义函数
private bool IsExistsXLXHID(string sXLXHID)
{
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
TSQL sSql = new TSQL(dberp);
sSql.Clear();
sSql.Add("select 1 from XLXHB where XLXHB_XLXHID=:pXLXHID");
sSql.ParamByName("pXLXHID").Value = sXLXHID;
DataSet ds = dberp.OpenDataSet(sSql);
if (ds.Tables[0].Rows.Count > 0)
return true;
else
return false;
}
private bool IsExistsXHDYDJ(string sXLXHID, string sDYDJID)
{
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
TSQL sSql = new TSQL(dberp);
sSql.Clear();
sSql.Add("select 1 from XLXHDYDJ where XLXHDYDJ_XLXHID=:pXLXHID and XLXHDYDJ_DYDJID=:pDYDJID");
sSql.ParamByName("pXLXHID").Value = sXLXHID;
sSql.ParamByName("pDYDJID").Value = sDYDJID;
DataSet ds = dberp.OpenDataSet(sSql);
if (ds.Tables[0].Rows.Count > 0)
return true;
else
return false;
}
private string GetMaxBH()
{
TDatabase dberp = TContextDatabases.GetDatabase("DBERP");
TSQL sSql = new TSQL(dberp);
sSql.Clear();
sSql.Add("select isnull(MAX(XLXHB_XLXHBH),'0000') as BH from XLXHB");
DataSet ds = dberp.OpenDataSet(sSql);
return ds.Tables[0].Rows[0][0].ToString().Trim();
}
private bool IsContain(string sCPYT,string sYTHZ)
{
if (sYTHZ.Contains(sCPYT))
return true;
else
return false;
}
private string GetCPYT()
{
string[] ary;
if (!String.IsNullOrEmpty(this.grdGrid.CheckedRowIndexs))
{
ary = this.grdGrid.CheckedRowIndexs.Split(new char[] { ',' });
}
else
{
return "";
}
string sResult = "";
foreach (string RowIndex in ary)
{
int ii = grdGrid.DataKeys.Count;
sResult += grdGrid.DataKeys[Int32.Parse(RowIndex)]["CPYTID"].ToString().Trim() + ",";
}
try
{
sResult = sResult.Substring(0, sResult.Length - 1);
}
catch
{
return "";
}
return sResult;
}
#endregion
}
}