Example #1
0
 private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
 {
     try
     {
         if (e.Column.FieldName == "GBStatusName")
         {
             e.Appearance.BackColor = ItemGBQuery.GetGridRowBackColor(SysConvert.ToString(gridView1.GetRowCellValue(e.RowHandle, "GBStatusName")));
         }
     }
     catch (Exception E)
     {
         this.ShowMessage(E.Message);
     }
 }
Example #2
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     this.HTDataTableName      = "Data_ItemGB";
     this.HTDataList           = gridView1;
     gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1);//绑定GridView1事件
     gridViewBindEventA1(gridView1);
     txtGBDateS.DateTime   = DateTime.Now.AddMonths(-3).Date;
     txtGBDateE.DateTime   = DateTime.Now.Date;
     txtItemDateS.DateTime = DateTime.Now.AddMonths(-3).Date;
     txtItemDateE.DateTime = DateTime.Now.Date;
     gridView1.OptionsBehavior.ShowEditorOnMouseUp = false;
     //this.ToolBarItemAdd(32, "btnUpdateGB", "挂板修改", true, btnUpdateGB_Click, eShortcut.F9);
     //this.ToolBarItemAdd(32, "btnUpdateGB", "挂板批量修改", true, btnUpdateGBPL_Click, eShortcut.F9);
     //this.ToolBarItemAdd(32, "btnLoadItemRecommend", "产品推荐", true, btnLoadItemRecommend_Click, eShortcut.F9);
     //this.ToolBarItemAdd(32, "btnDelImage", "清除图片", true, btnDelImage_Click, eShortcut.F9);
     btnQuery_Click(null, null);
     if (ItemGBQuery.ColorIniFlag)
     {
         ItemGBQuery.ColorIniTextBox(new TextBox[] { txtColorSOStatus1, txtColorSOStatus2, txtColorSOStatus3, txtColorSOStatus4, txtColorSOStatus5 });
     }
 }
Example #3
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     this.HTDataTableName = "Dev_GBJCLR";
     this.HTDataList      = gridView1;
     btnQuery_Click(null, null);
     Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.工厂, (int)EnumVendorType.客户 }, true);   //客户
     new VendorProc(drpVendorID);
     Common.BindVendor(drpLYVendorID, new int[] { (int)EnumVendorType.工厂, (int)EnumVendorType.客户 }, true); //留样客户
     new VendorProc(drpLYVendorID);
     Common.BindDOP(drpSaleOPID, true);
     txtJCTimeS.DateTime      = DateTime.Now.AddMonths(-3).Date;
     txtJCTimeE.DateTime      = DateTime.Now.Date;
     txtMakeDateS.DateTime    = DateTime.Now.AddDays(-5).Date;
     txtMakeDateE.DateTime    = DateTime.Now.Date;
     txtGHTimeS.DateTime      = DateTime.Now.AddMonths(-3).Date;
     txtGHTimeE.DateTime      = DateTime.Now.Date;
     this.chkMakeDate.Checked = true;
     if (ItemGBQuery.ColorIniFlag)
     {
         ItemGBQuery.ColorIniTextBox(new TextBox[] { txtColorSOStatus1, txtColorSOStatus2, txtColorSOStatus3, txtColorSOStatus4, txtColorSOStatus5 });
     }
     this.ToolBarItemAdd(32, "btnDY", "调样", true, btnDY_Click, eShortcut.F9);
 }