Exemple #1
0
 private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
 {
     try
     {
         if (e.Column.FieldName == "BoxStatusName")//
         {
             e.Appearance.BackColor = PackBoxStatusProc.GetGridRowBackColor(SysConvert.ToString(gridView1.GetRowCellValue(e.RowHandle, "BoxStatusName")));
         }
     }
     catch (Exception E)
     {
         this.ShowMessage(E.Message);
     }
 }
Exemple #2
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     this.HTDataTableName    = "WH_PackBox";
     this.HTDataList         = gridView1;
     txtCreateTimeS.DateTime = DateTime.Now.AddMonths(-3).Date;
     txtCreateTimeE.DateTime = DateTime.Now.Date;
     txtBoxNo.Focus();
     btnQuery_Click(null, null);
     gridView1.OptionsBehavior.ShowEditorOnMouseUp = false;
     if (FormListAID != 0)
     {
         chkIn.Visible = false;
     }
     if (FormListAID != 0)
     {
         drpUseable.Visible     = false;
         drpUseableFlag.Visible = false;
     }
     if (PackBoxStatusProc.ColorIniFlag)
     {
         PackBoxStatusProc.ColorIniTextBox(new TextBox[] { txtColorSOStatus1, txtColorSOStatus2, txtColorSOStatus3 });
     }
 }