public void InitControl() { gen = new GridHelper(); pdInstance=new QX.BLL.Bll_Prod(); comGrid = gen.GenerateGrid("CList_POut", this.pnlGrid, new Point(0, 0)); List<Prod_Pool> list = new List<Prod_Pool>(); comGrid.DataSource = list; comGrid.DisplayLayout.Override.AllowAddNew = AllowAddNew.No; }
private void Init() { Bll_Sys_Map mapInst = new Bll_Sys_Map(); Map = mapInst.GetModel(string.Format(" AND Map_Module='{0}' AND Map_Source='{0}'", "SmsTemplate")); Bll_Audit auditInst = new Bll_Audit(); TemlateKey = auditInst.GetTemplateModel(ModuleCode); GridHelper gen = new GridHelper(); uGridUser = gen.GenerateGrid("CList_VUser", this.panel1, new Point(6, 20)); var dt = adInstance.GetNextVerifyUser(AuditNode, SessionConfig.UserCode); uGridUser.DataSource = dt; uGridUser.DoubleClickRow += new DoubleClickRowEventHandler(uGridUser_DoubleClickRow); gen.SetGridReadOnly(uGridUser, true); gen.SetGridColumnStyle(uGridUser, AutoFitStyle.ResizeAllColumns); AddCustomCol(); }
private void AuditGridInit() { ////ControlGen.ContrlGenerate gen = new BC.ControlGen.ContrlGenerate(); GridHelper gen = new GridHelper(); List<VerifyProcess_Records> list = new List<VerifyProcess_Records>(); list= adInstance.VerfiyProcessRecords(ModuleCode, DataCode); //list = re.ToList(); comGrid = gen.GenerateGrid("CList_GAuditHistory", this.gpHis, new Point(6, 20)); //BindingSource dataSource = new BindingSource(); //dataSource.DataSource = list; comGrid.DataSource = list; SetGridEditMode(false, comGrid); ////列宽度自适应 comGrid.DisplayLayout.AutoFitStyle = AutoFitStyle.ResizeAllColumns; Bll_Sys_Map mapInst = new Bll_Sys_Map(); MapSource = mapInst.GetListByCode(string.Format(" AND Map_Module='{0}'", "Failure")); }
private void AuditGridInit() { ////ControlGen.ContrlGenerate gen = new BC.ControlGen.ContrlGenerate(); GridHelper gen = new GridHelper(); List<VerifyProcess_Records> list = new List<VerifyProcess_Records>(); var re = adInstance.VerfiyProcessRecords(ModuleCode, DataCode); list = re.ToList(); comGrid = gen.GenerateGrid("GAuditHistory", this.gpHis, new Point(6, 20)); //BindingSource dataSource = new BindingSource(); //dataSource.DataSource = list; comGrid.DataSource = list; SetGridEditMode(false, comGrid); ////列宽度自适应 comGrid.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn; }
private void GridInit() { GridHelper gen = new GridHelper(); List<Road_TestRef> list = new List<Road_TestRef>(); //获取当前工艺节点需要审核的检测参数 list = trInstance.GetTestRefListByNodeCode(ProdRoad.PRoad_CompCode, ProdRoad.PRoad_NodeCode); comGrid = gen.GenerateGrid("GTestRef", this.panel1, new Point(0, 0)); BindingSource dataSource = new BindingSource(); dataSource.DataSource = list; comGrid.DataSource = dataSource; //SetGridEditMode(false, comGrid); comGrid.DisplayLayout.Override.AllowAddNew = AllowAddNew.No; //列宽度自适应 comGrid.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn; }