Пример #1
0
        public void List_Option(ListOption pAction)
        {
            fAction = pAction;

            switch (fAction)
            {
            case ListOption.refer:

                if (rdo_refer.Checked == true)
                {
                    LoadData(COrder_exten.Refer());
                }
                else
                {
                    LoadData(COrder_exten.Unrefer());
                }

                break;

            case ListOption.showall:

                if (rdo_showall.Checked == true)
                {
                    LoadData(COrder_exten.Showall());
                }
                else
                {
                    LoadData(COrder_exten.Unrefer());
                }

                break;

            case ListOption.notactive:

                if (rdo_notactive.Checked == true)
                {
                    LoadData(COrder_exten.Notactive());
                }
                else
                {
                    LoadData(COrder_exten.Unrefer());
                }

                break;

            case ListOption.Search:
                LoadData(COrder_exten.Searchby(txt_no.Text, txt_date.Text, txt_Todate.Text, txt_party.Text));
                break;

            default:
                LoadData(COrder_exten.Unrefer());
                break;
            }
        }
Пример #2
0
        public void SetAction(BtnEvent pAction, string pPkValue)
        {
            fAction = pAction;

            switch (fAction)
            {
            case BtnEvent.Open:
                btn_save.Text = "&CLOSE";
                obj           = COrder_exten.PKId(pPkValue);
                list          = COrderitems_exten.FKId(pPkValue);
                this.EnableControls(false);
                break;

            case BtnEvent.New:
                btn_save.Text = "&SAVE";
                obj           = COrder.GetNew;
                list          = COrderitems.GetNew;
                this.EnableControls(true);
                break;

            case BtnEvent.Edit:
                btn_save.Text = "&UPDATE";
                obj           = COrder_exten.PKId(pPkValue);
                list          = COrderitems_exten.FKId(pPkValue);
                this.EnableControls(true);
                break;

            case BtnEvent.Delete:
                btn_save.Text = "CONFIRM\r\n&DELETE";
                obj           = COrder_exten.PKId(pPkValue);
                list          = COrderitems_exten.FKId(pPkValue);
                this.EnableControls(false);
                break;

            case BtnEvent.Print:
                btn_save.Text = "&PRINT";
                obj           = COrder_exten.PKId(pPkValue);
                list          = COrderitems_exten.FKId(pPkValue);
                this.EnableControls(false);
                //print_panel.Show();
                break;
            }

            LoadData(obj);
            Loaditems(list);
        }
Пример #3
0
        private Outward CollectData()
        {
            Outward fobj = new Outward()
            {
                Inward_id       = vId,
                Uniqueno        = Current.Acy_id + "~" + Current.Company_id + "~" + txt_outward_no.Text,
                Company_id      = Current.Company_id,
                Acy_id          = Current.Acy_id,
                Order_id        = COrder_exten.GetId_Name(txt_order_id.Text, "", "", ""),
                Outward_no      = txt_outward_no.Text,
                Outward_date    = txt_outward_date.Text,
                Party_dcno      = txt_party_dcno.Text,
                Party_id        = CParty_exten.GetId_Name(txt_party_id.Text),
                Total_qty       = txt_total_qty.Text,
                Total_bundel    = txt_total_bundel.Text,
                Delivredthrough = txt_deliveredthrough.Text,
                Locked          = Core.Unlocked,
                Notes           = txt_notes.Text,
                Active_id       = Core.Stative,
                User_id         = Current.User
            };

            return(fobj);
        }
Пример #4
0
 void Txt_order_id_LookupUpdate(object sender, EventArgs e)
 {
     txt_order_id.LookupList = COrder_exten.LookupNo();
 }