Beispiel #1
0
        public void Load_Batches(Department objDep)
        {
            PRPDBatch.PRPDType TYPE1 = new PRPDBatch.PRPDType();
            PRPDBatch.PRPDType TYPE2 = new PRPDBatch.PRPDType();
            PRPDBatch.PRPDType TYPE3 = new PRPDBatch.PRPDType();

            try
            {
                //if ((objDep.DepHead.EmployeeID == CurrentUser.EmployeeID)|(objDepartment_DL.GetBySectionID(((int)objEmployee_DL.Get(CurrentUser.EmployeeID).Section))).DepType=="PRPD")
                //{
                TYPE1 = PRPDBatch.PRPDType.PrimaryPreperation;
                TYPE2 = PRPDBatch.PRPDType.PrimaryOutsource;
                TYPE3 = PRPDBatch.PRPDType.Rework;

                dtPRPDBatcByState = objPRPDBatch_DL.GetDataByStateAndType(PRPDBatch.PRPDBatchStatus.Approved, PRPDBatch.PRPDBatchStatus.Started,
                                                                          TYPE1, TYPE2, TYPE3);


                //}

                if (dtPRPDBatcByState.Rows.Count != 0)
                {
                    cmbPRPDBatchID.DataSource    = dtPRPDBatcByState;
                    cmbPRPDBatchID.SelectedIndex = 0;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }