///// <summary> ///// 新增 ///// </summary> //public override int EntityAdd() //{ // return saveOPID; //} /// <summary> /// 数据初始化(填写表名、绑定控制、初始化界面属性等) /// </summary> public override void IniData() { this.HTDataTableName = "Data_OP"; this.HTDataList = gridView1; ProcessTreeList.BindTreeColumn(treeList1, this.FormID); //绑定列 ProcessTreeList.SetTreeColumnUI(treeList1); //设置列UI ProcessTreeList.BindTreeColumn(treeList2, this.FormID); //绑定列 ProcessTreeList.SetTreeColumnUI(treeList2); //设置列UI //Common.BindCompanyType(drpQCompanyTypeID, true); //this.doStatus = 1;//新增数据 this.gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1);//绑定GridView1事件 gridViewBindEventA1(gridView1); string sql = "SELECT ID,Name FROM Enum_SaleGroup"; chkListGroup.DataSource = SysUtils.Fill(sql); chkListGroup.DisplayMember = "Name"; chkListGroup.ValueMember = "ID"; chkListGroup.Show(); sql = "SELECT WHID,WHNM FROM WH_WH"; chkListWH.DataSource = SysUtils.Fill(sql); chkListWH.DisplayMember = "WHNM"; chkListWH.ValueMember = "WHID"; chkListWH.Show(); sql = "SELECT ID,Name FROM Data_AuthGrp"; chkListAuthGrp.DataSource = SysUtils.Fill(sql); chkListAuthGrp.DisplayMember = "Name"; chkListAuthGrp.ValueMember = "ID"; chkListAuthGrp.Show(); sql = "SELECT ID,Name FROM Data_Dep"; chkListDep.DataSource = SysUtils.Fill(sql); chkListDep.DisplayMember = "Name"; chkListDep.ValueMember = "ID"; chkListDep.Show(); BindTreeList(); BindTreeListAll(); treeListColumnName.OptionsColumn.AllowEdit = false; //窗体权限 treeListColumn4.OptionsColumn.AllowEdit = false; //窗体已具有权限 btnQuery_Click(null, null); }
/// <summary> /// 数据初始化(填写表名、绑定控制、初始化界面属性等) /// </summary> public override void IniData() { this.HTDataTableName = "Data_Item"; this.HTDataList = gridView1; this.HTQryContainer = groupControlQuery; ProcessTreeList.BindTreeColumn(treeList1, this.FormID); //绑定列 ProcessTreeList.SetTreeColumnUI(treeList1); //设置列UI IsPostBack = false; //btnQuery_Click(null, null); txtItemDateS.DateTime = DateTime.Now.AddMonths(-3).Date; txtItemDateE.DateTime = DateTime.Now.Date; Common.BindItemClass(drpQItemClass, (int)EnumItemType.面料, true); }
/// <summary> /// 数据初始化(填写表名、绑定控制、初始化界面属性等) /// </summary> public override void IniData() { this.ToolBarItemAdd(28, "btnSaveAuth", "保存权限群", false, btnSaveAuth_Click); this.ToolBarItemAdd(28, "btnSelectAll", "全选", false, btnSelectAll_Click); this.ToolBarItemAdd(28, "btnSelectOpp", "反选", false, btnSelectOpp_Click); ProcessTreeList.BindTreeColumn(treeList1, this.FormID); //绑定列 ProcessTreeList.SetTreeColumnUI(treeList1); //设置列UI this.HTDataTableName = "Data_AuthGrp"; //this.HTDataDts = treeList1; this.HTDataDtsAttach = new DevExpress.XtraGrid.Views.Grid.GridView[] { }; this.HTSubmitFlagFieldName = ""; this.HTDelFlagFieldName = ""; SetTabIndex(0, groupControlMainten); BindTreeList(); }
/// <summary> /// 窗体加载 /// </summary> private void frmLoadItem_Load(object sender, System.EventArgs e) { try { ProcessTreeList.BindTreeColumn(treeList1, this.FormID); //绑定列 ProcessTreeList.SetTreeColumnUI(treeList1); //设置列UI ProcessGrid.BindGridColumn(gridView1, this.FormID); //绑定列 ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI BindTreeList(); BindGrid(); } catch (Exception E) { this.ShowMessage(E.Message); } }
/// <summary> /// 数据初始化(填写表名、绑定控制、初始化界面属性等) /// </summary> public override void IniData() { this.HTDataTableName = "Data_Item"; this.HTDataList = gridView1; txtQMakeDateE.DateTime = DateTime.Now.Date; txtQMakeDateS.DateTime = DateTime.Now.Date.AddDays(0 - ParamConfig.QueryDayNum); ProcessTreeList.BindTreeColumn(treeList1, this.FormID); //绑定列 ProcessTreeList.SetTreeColumnUI(treeList1); //设置列UI ProcessGrid.BindGridColumn(gridView1, this.FormID); //绑定列 ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI ProcessGrid.SetGridEdit(gridView1, new string[] { "ItemName", "ItemCode", "ItemStd" }, true); //临时让其处于可编辑状态 Common.BindItemClass(drpQItemClass, this.FormListAID, true); BindTreeList(); }
/// <summary> /// 数据初始化(填写表名、绑定控制、初始化界面属性等) /// </summary> public override void IniData() { this.HTDataTableName = "Data_Item"; this.HTDataList = gridView1; txtQMakeDateE.DateTime = DateTime.Now.Date; txtQMakeDateS.DateTime = DateTime.Now.Date.AddDays(0 - ParamConfig.QueryDayNum); ProcessTreeList.BindTreeColumn(treeList1, this.FormID); //绑定列 ProcessTreeList.SetTreeColumnUI(treeList1); //设置列UI ProcessGrid.BindGridColumn(gridView1, this.FormID); //绑定列 ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI ProcessGrid.SetGridEdit(gridView1, new string[] { "ItemName", "ItemCode", "ItemStd" }, true); //临时让其处于可编辑状态 //this.ToolBarItemAdd(28, "btnSameItem", "同步物料", false, btnSameItem_Click); //this.ToolBarItemAdd(29, "btnDaoItem", "导出", false, btnDaoItem_Click); //if (FormListAID == (int)EnumItemType.原料) //{ // gridColumnItemCode.Caption = "原料编码"; // gridColumnItemName.Caption = "原料名称"; // gridColumnItemStd.Caption = "原料规格"; // gridColumnItemModel.Caption = "原料品名"; // gridColumnItemClassName.Caption = "原料类型"; //} //else if (FormListAID == (int)EnumItemType.纱线) //{ // gridColumnItemCode.Caption = "纱线编码"; // gridColumnItemName.Caption = "纱线成份"; // gridColumnItemStd.Caption = "纱线支数"; // gridColumnItemModel.Caption = "纱线品名"; // gridColumnItemClassName.Caption = "纱线类型"; //} Common.BindItemClass(drpQItemClass, (int)EnumItemType.纱线, true); BindTreeList(); btnQuery_Click(null, null); }