Ejemplo n.º 1
0
        //================================================================================================================================================//
        // ORDERS ADD FORM LOAD                                                                                                                         //
        //================================================================================================================================================//
        private void O_Add_Load(object sender, EventArgs e)
        {
            Home frmHome = (Home)this.Owner;

            txt_OA_PercInv.Text = "0%";
            txt_OA_PercRec.Text = "0%";

            if (frmHome.GetCurPanel() == "pnl_L_Orders")
            {
                Orders curForm = (Orders)frmHome.GetCurForm();

                txt_OA_CCode.Text = curForm.GetCCode();
                txt_OA_CName.Text = curForm.GetCName();

                txt_OA_Amt.Text = "R0.00";
            }
            else
            {
                isInter = true;
                Int_Orders curForm = (Int_Orders)frmHome.GetCurForm();

                txt_OA_CCode.Text = curForm.GetCCode();
                txt_OA_CName.Text = curForm.GetCName();

                txt_OA_Amt.Text = "$0.00";
            }
            txt_OA_Amt.SelectionStart = txt_OA_Amt.Text.Length;
        }
Ejemplo n.º 2
0
        //================================================================================================================================================//
        // LOAD EDIT/DELETE FORM                                                                                                                          //
        //================================================================================================================================================//
        private void O_Edit_Del_Load(object sender, EventArgs e)
        {
            Home frmHome = (Home)this.Owner;

            if (frmHome.GetCurPanel() == "pnl_L_Orders")
            {
                Orders parent = (Orders)frmHome.GetCurForm();

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

                txt_OED_CCode.Text = parent.GetCCode();
                txt_OED_CName.Text = parent.GetCName();
            }
            else
            {
                isInter = true;

                Int_Orders parent = (Int_Orders)frmHome.GetCurForm();

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

                txt_OED_CCode.Text = parent.GetCCode();
                txt_OED_CName.Text = parent.GetCName();
            }

            LoadOrder();

            oldCONum = txt_OED_CONum.Text.Trim();
        }