Beispiel #1
0
        protected Infragistics.WebUI.UltraWebGrid.UltraGridRow GetGridRowBurnIn(object obj)
        {
            ShelfActionList shelfal = obj as ShelfActionList;

            return(new Infragistics.WebUI.UltraWebGrid.UltraGridRow(
                       new object[] {
                shelfal.PKID.ToString(),
                shelfal.ShelfNO.ToString(),
                FormatHelper.ToDateString(shelfal.BurnInDate),
                FormatHelper.ToTimeString(shelfal.BurnInTime),
                shelfal.BurnInUser.ToString(),
                shelfal.BurnInTimePeriod.ToString(),
                FormatHelper.ToDateString(shelfal.BurnOutDate),
                FormatHelper.ToTimeString(shelfal.BurnOutTIme),
                shelfal.BurnOutUser.ToString(),
                shelfal.eAttribute1.ToString(),
                ""
            }


                       ));
        }
Beispiel #2
0
        public override void RCardRun()
        {
            string MOCode = f.GetAppConfig("BurnOutMOCode");

            actionForm.RefreshPanel();
            string strSql = "select * from tblshelfactionlist where status='ShelfStatus_BurnIn' ";

            if (MOCode != string.Empty)
            {
                strSql += " and pkid in (select shelfno from tblsimulation where mocode='" + MOCode + "' and laction='BURNIN') ";
            }
            strSql += " order by bidate,bitime";
            object[] objs = this.DataProvider.CustomQuery(typeof(ShelfActionList), new SQLCondition(strSql));
            if (objs == null || objs.Length == 0)
            {
                bExecuteing = false;
                return;
            }
            for (int i = 0; i < objs.Length; i++)
            {
                ShelfActionList shelf   = (ShelfActionList)objs[i];
                bool            expired = false;
                for (int n = 0; n < actionForm.ultraDataSource2.Rows.Count; n++)
                {
                    if (string.Compare(shelf.ShelfNO, actionForm.ultraDataSource2.Rows[n]["ShelfNO2"].ToString()) == 0)
                    {
                        expired = true;
                        break;
                    }
                }
                if (expired == true)
                {
                    actionForm.uclShelfNO.Value = shelf.ShelfNO;
                    DateTime dtStart = DateTime.Now;
                    actionForm.ucbBurnOut_Click(null, null);
                    f.LogCostTime(dtStart, shelf.ShelfNO);
                }
            }
        }