示例#1
0
        private void BindItemTypeDropdown()
        {
            IQCareUtils theUtils = new IQCareUtils();

            ddlItemType.Items.Clear();
            IMasterList objProgramlist = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM");
            DataTable   theDT          = objProgramlist.GetItemType();
            DataView    theDV          = new DataView(theDT);

            theDV.RowFilter = "ItemType <> 'Lab Tests' and DeleteFlag = 0";
            BindFunctions theBind = new BindFunctions();

            theBind.Win_BindCombo(ddlItemType, theDV.ToTable(), "ItemType", "ID");
        }
示例#2
0
        private void BindItemTypeDropdown()
        {
            try
            {
                IQCareUtils theUtils = new IQCareUtils();
                ddlItemType.Items.Clear();
                IMasterList objProgramlist = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM");
                DataTable   theDT          = objProgramlist.GetItemType();
                DataView    theDV          = new DataView(theDT);
                theDV.RowFilter = "DeleteFlag = 0";

                BindFunctions theBind = new BindFunctions();
                theBind.Win_BindCombo(ddlItemType, theDV.ToTable(), "ItemType", "ID");
            }
            catch (Exception err)
            {
                MsgBuilder theBuilder = new MsgBuilder();
                theBuilder.DataElements["MessageText"] = err.Message.ToString();
                IQCareWindowMsgBox.ShowWindowConfirm("#C1", theBuilder, this);
            }
        }