void ClearBoxes()
        {
            SalesOrder_Id.Text   = "";
            SalesOrder_Desc.Text = "";
            Cust_ID.Text         = "1";
            Cust_Name.Text       = "بدون عميل";
            Cust_Phone.Text      = "";
            credit.Text          = "";
            debit.Text           = "";
            VoucherCode.Text     = "";
            txtmotbqi.Text       = "";
            txtmadfoa.Text       = "";
            NewDofaaAr.Text      = "";
            txtBaqiAr.Text       = "";
            BTnBrowese.Focus();
            TxtItemId.Text       = "";
            TxtBarCode.Text      = "";
            TxtItemName.Text     = "";
            TxtSalePrice.Text    = "";
            TxtQTE.Text          = "";
            TxtAmount.Text       = "";
            TxtDiscount.Text     = "";
            Total_Amount.Text    = "";
            Total_Amount_Ar.Text = "";
            Dt.Clear();
            DGV_salesOrder.DataSource = null;
            BtnAdd.Enabled            = false;
            BtnNew.Enabled            = true;

            BtnNew.Focus();
        }
Exemple #2
0
        void ClearBoxes()
        {
            PurOrder_Id.Text   = "";
            PurOrder_Desc.Text = "";
            PurSup_ID.Text     = "1";
            Sup_Name.Text      = "بدون مورد";
            Sup_Phone.Text     = "";
            credit.Text        = "";
            debit.Text         = "";
            BTnBrowese.Focus();
            TxtRecived.Text      = "";
            BarCode.Text         = "";
            PurItem_Name.Text    = "";
            PurItem_Price.Text   = "";
            PurItem_QTE.Text     = "";
            TxtUnitPrice.Text    = "";
            TxtAmount.Text       = "";
            Total_Amount.Text    = "";
            Total_Amount_Ar.Text = "";
            Dt.Clear();
            DGV_PruChaseOrder.DataSource = null;
            BtnAdd.Enabled = false;
            BtnNew.Enabled = true;

            BtnNew.Focus();
        }