Example #1
0
        private void showItemCostHistoryWindow(String langKey)
        {
            String itemID = "";

            MInventoryCurrentBalance h = new MInventoryCurrentBalance(new CTable(""));
            MInventoryItem           t = (MInventoryItem)SelectedObject;

            if (t != null)
            {
                itemID = t.ItemID;
            }

            h.ItemID = itemID;

            Criteria.CCriteriaItemCostHistory cr = new Criteria.CCriteriaItemCostHistory();
            cr.SetActionEnable(false);
            cr.SetDefaultData(h);
            cr.Init("");

            String caption = CLanguage.getValue(langKey);

            WinLookupSearch1 w = new WinLookupSearch1(cr, caption);

            w.ShowDialog();
        }
Example #2
0
        private void showSalePurchaseHistoryWindow(String category, String selectType, String langKey)
        {
            MSalePurchaseHistory h = new MSalePurchaseHistory(new CTable(""));

            if (selectType.Equals("2"))
            {
                h.ItemCode = this.txtCode.Text;
            }
            else
            {
                //1=Service
                h.ServiceCode = this.txtCode.Text;
            }
            h.Category      = category;
            h.SelectionType = selectType;

            //ObservableCollection<MBaseModel> arr = new ObservableCollection<MBaseModel>();

            Criteria.CCriteriaSalePurchaseHistory cr = new Criteria.CCriteriaSalePurchaseHistory();
            cr.SetActionEnable(false);
            cr.SetDefaultData(h);
            cr.Init(category);

            String caption = CLanguage.getValue(langKey);

            WinLookupSearch1 w = new WinLookupSearch1(cr, caption);

            w.ShowDialog();
        }