Esempio n. 1
0
    //public override void PrintReport()
    //{
    //    //base.PrintReport();
    //    /* Update your datasource to set last printed date = now */
    //}



    //protected void CustomerWiseAmount_PreRender(object sender, EventArgs e)
    //{
    //    Response.Write("hi");
    //}
    //protected void CustomerWiseAmount_Search(object source, CrystalDecisions.Web.SearchEventArgs e)
    //{
    //
    //}

    //CrystalDecisions.Reporting.WebControls.DatabaseLogOnList
    //    CrystalDecisions.Reporting.WebControls.ParameterList
    //        CrystalDecisions.Web.ViewerToolbar
    //            CrystalDecisions.Web.CrystalReportGroupTree
    //                CrystalDecisions.Web.CrystalReportPageViewer


    //protected void btnprint_Click(object sender, EventArgs e)
    //{

    //}
    //protected void CustomerWiseAmount_Load(object sender, EventArgs e)
    //{
    //    foreach (Control c in CustomerWiseAmount.Controls)
    //    {
    //       foreach (Control cs in CrystalDecisions.Web.CrystalReportViewer() ;
    //        v.ToolTip
    //        Response.Write(c.ToString()+ "<BR>");
    //    }
    //}
    protected void btnsaveno_Click(object sender, EventArgs e)
    {
        CreditNote _obcn = new CreditNote();

        _obcn.ActualKey     = "cn-fromno";
        _obcn.GroupKey      = "cn-fromno";
        _obcn.PreviousCount = Convert.ToInt32(ds.Tables[0].Rows[0]["newno"].ToString());
        _obcn.NewCount      = Convert.ToInt32(ds.Tables[1].Rows[0]["FRMNO"].ToString());
        _obcn.Value         = (ds.Tables[1].Rows[0]["nvalue"].ToString());


        _obcn.SuperZoneId = Convert.ToInt32(DDLSuperZone.SelectedValue.ToString());

        _obcn.CreatedBy = Session["UserName"].ToString();
        _obcn.Flag      = "update_cn_prog_chart";
        _obcn.SaveCNProgrammeChartDetails();
        MessageBox("Submit Successfully");
    }