예제 #1
0
    protected void btnget_Click(object sender, EventArgs e)
    {
        stDS            = new DataSet();
        docno.InnerHtml = txtDocno.Text.Trim();
        stDS            = CnFInvoice.GetInvoiceDetails(Convert.ToInt32(txtDocno.Text), "print", Convert.ToInt32(strFY));

        RepDetailsApprove.DataSource = stDS.Tables[1];
        RepDetailsApprove.DataBind();
    }
예제 #2
0
    protected void btnget_Click(object sender, EventArgs e)
    {
        pnlDetails.Visible = true;
        stDS            = new DataSet();
        docno.InnerHtml = txtDocno.Text.Trim();
        stDS            = SpecimanDetails.Get_SubDocId_And_ItsRecords_By_DocNo(Convert.ToInt32(txtDocno.Text), "approved");
        RepDetailsApprove.DataSource = stDS.Tables[0];
        RepDetailsApprove.DataBind();
        string jv = "";

        if (RepDetailsApprove.Items.Count <= 0)
        {
            jv = "document.getElementById('ctl00_ContentPlaceHolder1_uc_ConfirmedDC1_btnapproval').style.display='none';";
        }
        else
        {
            jv = "document.getElementById('ctl00_ContentPlaceHolder1_uc_ConfirmedDC1_btnapproval').style.display='block';";
        }
        ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "a", jv, true);
    }
예제 #3
0
    protected void img01_Click(object sender, ImageClickEventArgs e)
    {
        ImageButton img = (ImageButton)(sender);

        if (img.CommandName.ToLower() == "p")
        {
            grdconfirm.DataSource = DCDetails.Idv_Get_DCDetails_By_DocNo(Convert.ToInt32(img.CommandArgument.Trim()),
                                                                         "helpdesk", Convert.ToInt32(0)).Tables[1];
            grdconfirm.DataBind();
            ModalPopUpDocNum.Show();
            UpdatePanel7.Update();
        }
        else
        {
            stDS = DCDetails.Get_SubDocId_And_ItsRecords_By_DocNo(Convert.ToInt32(img.CommandArgument.Trim()), "helpdesk",
                                                                  Convert.ToInt32(0));
            RepDetailsApprove.DataSource = stDS.Tables[0];
            RepDetailsApprove.DataBind();
            ModalPopupExtender1.Show();
            UpdatePanel8.Update();
        }
    }
    protected void btnget_Click(object sender, EventArgs e)
    {
        stDS = new DataSet();
        pnlDetails.Visible = true;
        docno.InnerHtml    = txtDocno.Text.Trim();
        stDS = DCDetails.Get_SubDocId_And_ItsRecords_By_DocNo(Convert.ToInt32(txtDocno.Text), "approved", Convert.ToInt32(strFY));
        RepDetailsApprove.DataSource = stDS.Tables[0];
        RepDetailsApprove.DataBind();

        // ((Label)((Button)(sender)).Parent.FindControl("lblfright")).Text = (stDS.Tables[1].Rows[0]["Freight"]).ToString();
        // ((Label)((Button)(sender)).Parent.FindControl("lbltax")).Text = (stDS.Tables[1].Rows[0]["Tax"]).ToString();
        //  ((Label)((Button)(sender)).Parent.FindControl("lbltotalamt")).Text = (stDS.Tables[1].Rows[0]["TotalAmount"]).ToString();
        string jv = "";

        if (RepDetailsApprove.Items.Count <= 0)
        {
            jv = "document.getElementById('ctl00_ContentPlaceHolder1_uc_Print_Invoice1_btnapproval').style.display='none';";
        }
        else
        {
            jv = "document.getElementById('ctl00_ContentPlaceHolder1_uc_Print_Invoice1_btnapproval').style.display='block';";
        }
        ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "a", jv, true);
    }