Ejemplo n.º 1
0
        private void Init_Form()
        {
            IMasterList objSupplierList = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM");
            DataSet     dsSupplierList  = objSupplierList.GetSupplierList();

            MaxPId = Convert.ToInt32(dsSupplierList.Tables[1].Rows[0][0]);
            ShowGrid(dsSupplierList.Tables[0]);
            Clear_Form();
        }
Ejemplo n.º 2
0
        private void BindSupplierDropdown()
        {
            IQCareUtils theUtils = new IQCareUtils();

            ddlSupplierName.Items.Clear();
            try
            {
                IMasterList objSupplierlist = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM");
                DataSet     dsSupplierlist  = objSupplierlist.GetSupplierList();
                DataView    theDV           = new DataView(dsSupplierlist.Tables[0]);
                theDV.RowFilter = "Status = 0";
                DataTable     theDT   = theUtils.CreateTableFromDataView(theDV);
                BindFunctions theBind = new BindFunctions();
                theBind.Win_BindCombo(ddlSupplierName, theDT, "SupplierName", "Id");
            }
            catch (Exception err)
            {
                MsgBuilder theBuilder = new MsgBuilder();
                theBuilder.DataElements["MessageText"] = err.Message.ToString();
                IQCareWindowMsgBox.ShowWindowConfirm("#C1", theBuilder, this);
            }
        }