private void PrintData()
 {
     if (Request.QueryString["SpecNo"] != "0")
     {
         int FY = Convert.ToInt32(Session["FY"].ToString());
         if (FY != 0)
         {
             OtherBAL       ObjBAL = new OtherBAL();
             DataSet        ds     = ObjBAL.Idv_Chetana_Get_Godown_Speciman_Head(Convert.ToInt32(Request.QueryString["SpecNo"].ToString()), FY, "SpecimanPrint");
             ReportDocument rd     = new ReportDocument();
             rd.Load(Server.MapPath("~/Report/GetPassOutSpecimen.rpt"));
             rd.SetDataSource(ds.Tables[0]);
             GetPassSpecimen.ReportSource = rd;
         }
     }
 }
Exemplo n.º 2
0
    protected void BtnGetDCDetails_Click(Object sender, EventArgs e)
    {
        int       SpecNo = Convert.ToInt32(txtDocIdEdit.Text);
        int       FY     = Convert.ToInt32(strFY);
        DataSet   ds     = ObjBAL.Idv_Chetana_Get_Godown_Speciman_Head(SpecNo, FY, "SpcimanEdit");
        DataTable dt     = ds.Tables[0];

        if (dt.Rows.Count > 0)
        {
            btnDelete.Visible          = true;
            lblSpecId.Text             = dt.Rows[0]["SpecAutoId"].ToString();
            txtSpecimanNo.Text         = dt.Rows[0]["SpecSeqNo"].ToString();
            txtSpecDate.Text           = dt.Rows[0]["SpeDate"].ToString();
            txtBranch.Text             = dt.Rows[0]["BranchName"].ToString();
            txttransporter.Text        = dt.Rows[0]["TranspportName"].ToString();
            txtNoOfParcels.Text        = dt.Rows[0]["NoOfParcels"].ToString();
            txtRemark.Text             = dt.Rows[0]["Remark"].ToString();
            txtValOfGoods.Text         = dt.Rows[0]["valueOfGood"].ToString();
            txtSentBy.Text             = dt.Rows[0]["SendBy"].ToString();
            txtLRNo.Text               = dt.Rows[0]["LRNO"].ToString();
            txtLrDate.Text             = dt.Rows[0]["LDDate"].ToString();
            rdoPaidStaus.SelectedValue = Convert.ToInt32(dt.Rows[0]["Paid"]).ToString();
            chIsDelivery.Checked       = Convert.ToBoolean(dt.Rows[0]["Delivery"].ToString());
            filltempData(ds.Tables[1]);
            CallButonVisible("edit");
            grdTemp.Visible = true;
            txtSpecDate.Focus();
        }
        else
        {
            MessageBox("Info! : \\r\\n Doc. No. " + txtDocIdEdit.Text.Trim() + " Not Found!!!");
            ModalPopUpDocNum.Show();
            txtDocIdEdit.Text = "";
            txtDocIdEdit.Focus();
        }
    }