/// <summary> /// 数据初始化(填写表名、绑定控制、初始化界面属性等) /// </summary> public override void IniData() { this.HTDataTableName = "Chk_CheckOrderISN"; this.HTDataList = gridView1; this.HTDataDtsAttach = new DevExpress.XtraGrid.Views.Grid.GridView[1] { gridView2 }; //IsPostBack = false; txtReqDateS.DateTime = DateTime.Now.AddDays(-30); txtReqDateE.DateTime = DateTime.Now; gridView1.OptionsBehavior.ShowEditorOnMouseUp = false; ProcessGrid.SetGridEdit(gridView1, "CheckFlag", true); //增加入库代码 //this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "勾选入库", true, btnLoad_Click); //勾选单据入库 //this.ToolBarItemAdd(28, "btnZToExcel", "导出检验报告", false, btnZToExcel_Click); //this.ToolBarItemAdd(28, "btnZToNewExcel", "新导出检验报告", false, btnZToNewExcel_Click); gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1);//绑定GridView1事件 gridViewBindEventA1(gridView1); btnPrintVisible = true; }
/// <summary> /// 控件状态方法设置 /// </summary> public override void SetInputStatus(bool p_Flag) { ProcessCtl.ProcControlEdit(groupControlMainten, p_Flag); ProcessCtl.ProcControlEdit(groupControlDataList, p_Flag); ProcessGrid.SetGridEdit(HTDataDts, new string[] { "ItemCode", "ItemName", "ItemModel", "ItemStd" }, false); txtMakeOPName.Properties.ReadOnly = true; ContextMenuStrip _MenuFrist = this.HTDataDts.GridControl.ContextMenuStrip as ContextMenuStrip; if (this.HTFormStatus == FormStatus.新增 || this.HTFormStatus == FormStatus.修改) { for (int i = 0; i < _MenuFrist.Items.Count; i++) { _MenuFrist.Items[i].Visible = true; } _MenuFrist.Items[7].Visible = false; } if (this.HTFormStatus == FormStatus.查询) { for (int i = 0; i < _MenuFrist.Items.Count; i++) { _MenuFrist.Items[i].Visible = false; } _MenuFrist.Items[7].Visible = true; _MenuFrist.Items[7].Enabled = true; } }
/// <summary> /// 控件状态方法设置 /// </summary> public override void SetInputStatus(bool p_Flag) { ProcessCtl.ProcControlEdit(groupControlMainten, p_Flag); ProcessCtl.ProcControlEdit(groupControlDataList, p_Flag); ProcessGrid.SetGridEdit(HTDataDts, new string[] { "ItemCode", "ItemName", "ItemModel", "ItemStd" }, false); txtMakeOPName.Properties.ReadOnly = true; }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { //YarnCompactDtsRule rule = new YarnCompactDtsRule(); //gridView1.GridControl.DataSource = rule.RShowDts(HTLoadConditionStr + HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", "0 SelectFlag")); //gridView1.GridControl.Show(); ProcessGrid.SetGridEdit(HTDataList, "SelectFlag", true); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { SampleRule rule = new SampleRule(); gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1)); gridView1.GridControl.Show(); ProcessGrid.SetGridEdit(gridView1, new string[] { "EventStatus" }, true); }
private void frmWHfrmPayment_Load(object sender, EventArgs e) { Common.BindCLS(drpType, "Finance_PaymentHandle", "Type", true); BindGrid(); ProcessGrid.BindGridColumn(gridView1, this.FormID);//绑定列 ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID); ProcessGrid.SetGridEdit(gridView1, new[] { "FormNo" }, false); dtGrid = (DataTable)gridView1.GridControl.DataSource; }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { IOFormDtsISNRule rule = new IOFormDtsISNRule(); gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", "0 SelectFlag")); gridView1.GridControl.Show(); ProcessGrid.SetGridEdit(HTDataList, new string[] { "SelectFlag" }, true); }
/// <summary> /// 控件状态方法设置 /// </summary> public override void SetInputStatus(bool p_Flag) { ProcessCtl.ProcControlEdit(gridControl3, p_Flag); if (SysConvert.ToBoolean(ProductParamSet.GetIntValueByID(5021)))//客户编号自动生成 { ProductCommon.FormNoCtlEditSet(txtVendorID, "Data_Vendor", "VendorID", this.FormListAID, p_Flag); } ProcessGrid.SetGridEdit(gridView6, new string[] { "Name" }, false); ProcessGrid.SetGridColumnReadOnly(gridView6, new string[] { "Name" }, true); }
/// <summary> /// 重写初始化之后的方法 /// </summary> public override void IniFormLoadBehind() { ProcessGrid.SetGridEdit(HTDataList, new string[] { "SelectFlag" }, true); if (m_Double) //多选 { gridColumn19.Visible = true; } else { gridColumn19.Visible = false; } }
/// <summary> /// 控件状态方法设置 /// </summary> public override void SetInputStatus(bool p_Flag) { ProcessCtl.ProcControlEdit(groupControlMainten, p_Flag); // ProductCommon.FormNoCtlEditSet(txtItemCode, "Data_Item", "ItemCode", (int)EnumItemType.面料, p_Flag); ProcessGrid.SetGridEdit(gridView6, new string[] { "Name" }, false); ProcessGrid.SetGridColumnReadOnly(gridView6, new string[] { "Name" }, true); txtGreyFabItemCode.Properties.ReadOnly = true; }
/// <summary> /// 数据初始化(填写表名、绑定控制、初始化界面属性等) /// </summary> public override void IniData() { this.HTDataTableName = "Buy_AccesoryCompact"; this.HTDataList = gridView1; txtQCompactDateS.DateTime = DateTime.Now.AddDays(0 - ParamConfig.QueryDayNum); txtQCompactDateE.DateTime = DateTime.Now.Date; Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.工厂 }, true);//客户 Common.BindOPID(drpQSaleOPID, true); //new ItemProcLookUp(drpQItemCode, new int[] { (int)EnumItemType.辅料 }, true, true); HTDataList.OptionsBehavior.ShowEditorOnMouseUp = false; ProcessGrid.SetGridEdit(HTDataList, "SelectFlag", true); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { FabricProcessRule rule = new FabricProcessRule(); DataTable dt = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("FormStatusName", "'' FormStatusName")); ItemBuyStatusProc.ProcColorStatusName(dt); ProcDataSourceQty(dt); gridView1.GridControl.DataSource = dt; gridView1.GridControl.Show(); string sql = "SELECT distinct ID FROM UV1_WO_FabricProcessDts WHERE 1=1"; sql += HTDataConditionStr; dt = SysUtils.Fill(sql); lbCount.Text = "加工单数:" + dt.Rows.Count.ToString(); ProcessGrid.SetGridEdit(gridView1, new string[] { "HandleStatus", "HandleStatusDate" }, true); }
/// <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); }
public override void IniFormLoadBehind() { ProcessGrid.SetGridEdit(HTDataList, new string[] { "SelectFlag" }, true); }
public override void IniFormLoadBehind() { base.IniFormLoadBehind(); ProcessGrid.SetGridEdit(HTDataList, new string[] { "HKFlag", "BGJFlag" }, true); }
public override void IniFormLoadBehind() { ProcessGrid.SetGridEdit(gridView1, new string[] { "PostFee" }, true); }
/// <summary> /// 重写初始化之后的方法 /// </summary> public override void IniFormLoadBehind() { ProcessGrid.SetGridEdit(HTDataList, new string[] { "ItemCode" }, true); BindGrid(); }
public override void IniFormLoadBehind() { ProcessGrid.SetGridEdit(HTDataList, new string[] { "RecordOPID" }, true); }