private void Init_Form()
        {
            IMasterList objProgramlist = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM");
            DataSet     dsProgramlist  = objProgramlist.GetProgramList();

            MaxPId = Convert.ToInt32(dsProgramlist.Tables[1].Rows[0][0]);
            ShowGrid(dsProgramlist.Tables[0]);
            Clear_Form();
        }
Esempio n. 2
0
 private void BindProgramDropdown()
 {
     try
     {
         IQCareUtils theUtils = new IQCareUtils();
         ddlProgramName.Items.Clear();
         IMasterList objProgramlist = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM");
         DataSet     dsProgramlist  = objProgramlist.GetProgramList();
         DataView    theDV          = new DataView(dsProgramlist.Tables[0]);
         theDV.RowFilter = "Status = 0";
         DataTable     theDT   = theUtils.CreateTableFromDataView(theDV);
         BindFunctions theBind = new BindFunctions();
         theBind.Win_BindCombo(ddlProgramName, theDT, "ProgramName", "Id");
     }
     catch (Exception err)
     {
         MsgBuilder theBuilder = new MsgBuilder();
         theBuilder.DataElements["MessageText"] = err.Message.ToString();
         IQCareWindowMsgBox.ShowWindowConfirm("#C1", theBuilder, this);
     }
 }