Esempio n. 1
0
        private void ddlStore_SelectionChangeCommitted(object sender, EventArgs e)
        {
            try
            {
                if (Convert.ToInt32(ddlStore.SelectedValue) != 0)
                {
                    BindFunctions theBindManager = new BindFunctions();


                    IMasterList obj = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM");
                    this.dtStoreItems = obj.GetItemByStoreId(Convert.ToInt32(ddlStore.SelectedValue));
                    //
                    //  DataSet theDS = GetItems(Convert.ToInt32(ddlStore.SelectedValue), Convert.ToInt32(lstSearch.SelectedValue), Convert.ToDateTime(dtpFrom.Text), Convert.ToDateTime(dtpTo.Text));
                    //  //theBindManager.Win_BindListBox(lstSearch, theDS.Tables[0], "DrugName", "Drug_pk");
                    // theDTItems = theDS.Tables[1];
                    //ShowGrid(theDS.Tables[1]);
                }
                else
                {
                    txtItemName.Text = "";
                    dgwStockSummary.Columns.Clear();
                    dgwStockSummary.DataSource = null;
                }
            }
            catch (Exception err)
            {
                MsgBuilder theBuilder = new MsgBuilder();
                theBuilder.DataElements["MessageText"] = err.Message.ToString();
                IQCareWindowMsgBox.ShowWindowConfirm("#C1", theBuilder, this);
            }
        }