예제 #1
0
 private void BindItemsubTypeDropdown(string ItemTypeId)
 {
     try
     {
         IQCareUtils theUtils = new IQCareUtils();
         ddlItemSubType.DataSource = null;
         IMasterList   objSubitemType = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM");
         DataTable     theDT          = objSubitemType.GetSubItemType();
         BindFunctions theBind        = new BindFunctions();
         DataView      theDV          = new DataView(theDT);
         theDV.RowFilter = "ItemTypeId =" + ItemTypeId;
         theBind.Win_BindCombo(ddlItemSubType, theDV.ToTable(), "DrugTypeName", "drugTypeID");
     }
     catch (Exception err)
     {
         MsgBuilder theBuilder = new MsgBuilder();
         theBuilder.DataElements["MessageText"] = err.Message.ToString();
         IQCareWindowMsgBox.ShowWindowConfirm("#C1", theBuilder, this);
     }
 }