/// <summary> /// 数据初始化(填写表名、绑定控制、初始化界面属性等) /// </summary> public override void IniData() { this.HTDataTableName = "Ship_ShipBoat"; this.HTDataDts = gridView1; this.HTCheckDataField = new string[] { "Qty" };//数据明细校验必须录入字段 //Common.BindCompanyType(drpCompanyTypeID, false); Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true); new VendorProc(drpVendorID); Common.BindVendor(drpFactoryID, new int[] { (int)EnumVendorType.工厂 }, true); new VendorProc(drpFactoryID); //Common.BindCLS(drpGainType, this.HTDataTableName, "GainType", true); //Common.BindCLS(drpReceiveType, this.HTDataTableName, "ReceiveType", true); //Common.BindCLS(drpTradeType, this.HTDataTableName, "TradeType", true); //Common.BindCLS(drpTransType, this.HTDataTableName, "TransType", true); ////Common.BindCLS(drpXL, this.HTDataTableName, "PortDischarge", true); //Common.BindCLS(drpY_DPay, this.HTDataTableName, "SCNO", true); //Common.BindCLS(drpFS, this.HTDataTableName, "Container", true); //Common.BindCLS(drpZY, this.HTDataTableName, "BoatName", true); //Common.BindCLS(drpFROM, this.HTDataTableName, "FromOPName", true); //Common.BindCLS(drpTO, this.HTDataTableName, "TOOPName", true); DevMethod.BindRepCountry(drpCountry); //Common.BindCLS(drpShippers, this.HTDataTableName, "Shippers", true); //this.ToolBarItemAdd(28, "btnCheckLoad", "加载", false, btnCheckLoad_Click); //this.ToolBarItemSet(-1, ToolButtonName.btnPreview.ToString(), "预览", false, 13);//13 ////this.ToolBarItemSet(-1, ToolButtonName.btnPrint.ToString(), "打印", false, 12);//12 //this.ToolBarItemSet(-1, ToolButtonName.btnDesign.ToString(), "设计", false, 28);//28 //this.ToolBarItemAdd(28, "btnCheckLoad", "打印", false, btnInvoice_Click); //this.ToolBarItemAdd(28, "btnCheckLoad", "导出小国家", false, btnESTS_Click); //this.ToolBarItemAdd(28, "btnCheckLoad", "导出JL", false, btnJLTS_Click); //this.ToolBarItemAdd(28, "btnCheckLoad", "导出DAMCO", false, btnDAMCO_Click); //this.ToolBarItemAdd(28, "btnCheckLoad", "导出嘉里大通空运", false, btnJLKY_Click); SetTabIndex(0, groupControlMainten); }