Example #1
0
        private void O_Add_Load(object sender, EventArgs e)
        {
            txt_OA_PercInv.Text = "0%";
            txt_OA_PercRec.Text = "0%";

            if (this.Owner.GetType() == typeof(Orders))
            {
                Orders owner = (Orders)this.Owner;

                txt_OA_CCode.Text = owner.GetClientCode();
                txt_OA_CName.Text = owner.GetClientName();
                clientName        = owner.GetClientName();
            }
            else
            {
                Int_Orders owner = (Int_Orders)this.Owner;

                txt_OA_CCode.Text = owner.GetClientCode();
                txt_OA_CName.Text = owner.GetClientName();
                clientName        = owner.GetClientName();
            }

            txt_OA_Amt.Text           = "0.00";
            txt_OA_Amt.SelectionStart = txt_OA_Amt.Text.Length;

            LoadQuotes();
        }
        private void O_Edit_Del_Load(object sender, EventArgs e)
        {
            if (this.Owner.GetType() == typeof(Orders))
            {
                Orders owner = (Orders)this.Owner;

                dt             = owner.GetOrders();
                SELECTED_ORDER = owner.GetSelectedOrder();

                txt_OED_CCode.Text = owner.GetClientCode();
                txt_OED_CName.Text = owner.GetClientName();
                clientName         = owner.GetClientName();
            }
            else
            {
                Int_Orders owner = (Int_Orders)this.Owner;

                dt             = owner.GetOrders();
                SELECTED_ORDER = owner.GetSelectedOrder();

                txt_OED_CCode.Text = owner.GetClientCode();
                txt_OED_CName.Text = owner.GetClientCode();
                clientName         = owner.GetClientName();
            }

            LoadQuotes();
            LoadOrder();

            oldCONum = txt_OED_CONum.Text.Trim();
        }