示例#1
0
    public void fillEditForm()
    {
        Clear();
        DataSet   ds = G_GetPass.GetpassOnDocNo(Convert.ToInt32(txtDocIdEdit.Text.Trim()), "O", Convert.ToInt32(strFY));
        DataTable dt = ds.Tables[0];

        if (dt.Rows.Count > 0)
        {
            string date = (Convert.ToDateTime(dt.Rows[0]["Doc_Date"].ToString())).ToString("dd/MM/yyyy");
            txtDocNo.Text   = dt.Rows[0]["Doc_No"].ToString();
            lblDocNo.Text   = dt.Rows[0]["Doc_ID"].ToString();
            txtDocDate.Text = date;
            fillTopGrid(ds.Tables[0]);
            filltempData(ds.Tables[1]);
            CallButonVisible("edit");
            txtDocDate.Focus();
        }
        else
        {
            MessageBox("Info! : \\r\\n Doc. No. " + txtDocIdEdit.Text.Trim() + " Not Found!!!");
            ModalPopUpDocNum.Show();
            txtDocIdEdit.Text = "";
            txtDocIdEdit.Focus();
        }
    }
示例#2
0
    public void fillEditForm()
    {
        Clear();
        DataTable dt = G_GetPass.GetpassOnDocNo(Convert.ToInt32(txtDocIdEdit.Text.Trim()), "O", Convert.ToInt32(strFY)).Tables[0];

        if (dt.Rows.Count > 0)
        {
            string date   = (Convert.ToDateTime(dt.Rows[0]["Doc_Date"].ToString())).ToString("dd/MM/yyyy");
            string LRdate = (Convert.ToDateTime(dt.Rows[0]["LR_Date"].ToString())).ToString("dd/MM/yyyy");
            txtDocNo.Text              = dt.Rows[0]["Doc_No"].ToString();
            lblDocNo.Text              = dt.Rows[0]["Doc_ID"].ToString();
            txtDcNo.Text               = dt.Rows[0]["DC_No"].ToString();
            txtBillNo.Text             = dt.Rows[0]["Bill_Nos"].ToString();
            lblclone.Text              = dt.Rows[0]["Bill_Nos"].ToString();
            txtcustomer.Text           = dt.Rows[0]["CustomerName"].ToString();
            lblCustID.Text             = dt.Rows[0]["Cust_ID"].ToString();
            txttransporter.Text        = dt.Rows[0]["Trasporter"].ToString();
            lblTransID.Text            = dt.Rows[0]["Transporter_ID"].ToString();
            txtNoOfBund.Text           = dt.Rows[0]["No_Bundles"].ToString();
            txtValOfGoods.Text         = dt.Rows[0]["Value_Goods"].ToString();
            txtSentBy.Text             = dt.Rows[0]["Sent_By"].ToString();
            txtLRNo.Text               = dt.Rows[0]["LR_No"].ToString();
            txtLrDate.Text             = LRdate;
            chIsDelivery.Checked       = Convert.ToBoolean(dt.Rows[0]["Delivery"].ToString());
            txtAmt.Text                = dt.Rows[0]["Amount"].ToString();
            rdoPaidStaus.SelectedValue = dt.Rows[0]["Pay_Paid"].ToString();
            txtDocDate.Text            = date; dt.Rows[0]["Amount"].ToString();
            txtRemark.Text             = dt.Rows[0]["Remark1"].ToString();
            CallButonVisible("edit");
            txtDocDate.Focus();
        }
        else
        {
            MessageBox("Info! : \\r\\n Doc. No. " + txtDocIdEdit.Text.Trim() + " Not Found!!!");
            txtDocIdEdit.Text = "";
            txtDocIdEdit.Focus();
            ModalPopUpDocNum.Show();
        }
    }
示例#3
0
    public void fillEditForm()
    {
        Clear();
        DataSet   ds = G_GetPass.GetpassOnDocNo(Convert.ToInt32(txtDocIdEdit.Text.Trim()), "L", Convert.ToInt32(strFY));
        DataTable dt = ds.Tables[0];

        if (dt.Rows.Count > 0)
        {
            string date = (Convert.ToDateTime(dt.Rows[0]["Doc_Date"].ToString())).ToString("dd/MM/yyyy");
            txtDocNo.Text          = dt.Rows[0]["Doc_No"].ToString();
            lblDocNo.Text          = dt.Rows[0]["Doc_ID"].ToString();
            txtDocDate.Text        = date;
            txtDriver.Text         = dt.Rows[0]["Driver_Name"].ToString();
            lblDriver.Text         = dt.Rows[0]["Driver_Name"].ToString();
            lblDriver.Visible      = true;
            lblDriverID.Text       = dt.Rows[0]["Driver_ID"].ToString();
            txtVehicle.Text        = dt.Rows[0]["Veh_no"].ToString();
            lblVehicleNo.Text      = dt.Rows[0]["Veh_no"].ToString();
            lblVehicleNoID.Text    = dt.Rows[0]["Veh_ID"].ToString();
            ddlArea.SelectedValue  = dt.Rows[0]["Area"].ToString();
            txtDiliveryboy.Text    = dt.Rows[0]["Deliveruy_Boy"].ToString();
            lblDeliveryBoy.Text    = dt.Rows[0]["Deliveruy_Boy"].ToString();
            lblDeliveryBoy.Visible = true;
            lblDeliveryBoyID.Text  = dt.Rows[0]["Deliveruy_Boy_ID"].ToString();
            filltempData(ds.Tables[1]);
            CallButonVisible("edit");
            txtDocDate.Focus();
        }
        else
        {
            MessageBox("Info! : \\r\\n Doc. No. " + txtDocIdEdit.Text.Trim() + " Not Found!!!");
            ModalPopUpDocNum.Show();
            txtDocIdEdit.Text = "";
            txtDocIdEdit.Focus();
        }
    }