private void callprocedure()
        {
            Cls_Business_TransHwayBulkOperation obj = new Cls_Business_TransHwayBulkOperation();
            string pro_output = obj.bulkUploadTemp(Session["lco_username"].ToString(), ViewState["uniqueid"].ToString());

            if (pro_output.Split('#')[0] == "9999")
            {
                lblStatusHeading.Text = "File Upload : Successful";
                lblStatus.Text        = "";
                //btnBeginTrans.Visible = true;
                Response.Redirect("../Reports/rptBulkTransactionProc.aspx?uniqueid=" + ViewState["uniqueid"].ToString());
            }
            else if (pro_output.Split('#')[0] == "-301")
            {
                lblStatusHeading.Text = "File verification : Failed";
                lnkShwoAll.Visible    = true;
                lblStatus.Text        = pro_output.Split('#')[1];
            }
            else if (pro_output.Split('#')[0] == "-300")
            {
                lblStatusHeading.Text = "File verification : Failed";
                lnkShwoAll.Visible    = true;
                lblStatus.Text        = "Sorry ";
            }
            else
            {
                lblStatusHeading.Text = "File verification : Failed";
                lnkShwoAll.Visible    = false;
                lblStatus.Text        = pro_output.Split('#')[1];
            }
        }
Example #2
0
        private void callprocedure()
        {
            Cls_Business_TransHwayBulkOperation obj = new Cls_Business_TransHwayBulkOperation();
            string pro_output = obj.bulkUploadTemp(username, upload_id);

            if (pro_output.Split('#')[0] == "9999")
            {
                lblStatusHeading.Text = "File Upload : Successful";
                lblStatus.Text        = "";
                //btnBeginTrans.Visible = true;
                lnkfileStatus.Visible = true;
                Response.Redirect("../Reports/rptBulkTransactionProc.aspx?uniqueid=" + upload_id);
            }
            else
            {
                lblStatusHeading.Text = "File Upload : Failed";
                string raw_message = pro_output.Split('#')[1];
                lnkfileStatus.Visible = false;
                string message = "";
                if (raw_message.Contains('~'))
                {
                    string[]  err_data  = raw_message.TrimEnd('~').Split('~');
                    DataTable dtErrData = generateDataTable(err_data);
                    rptErrData.DataSource = dtErrData;
                    rptErrData.DataBind();
                    pnlErrData.Visible = true;
                }
                else
                {
                    message = raw_message.Replace("$", "").Replace("-", "");
                }

                lblStatus.Text = message;
            }
        }
        public void getBalance()
        {
            string RequTomor   = "";
            string RequToday   = "";
            string AvalBalance = "";
            Cls_Business_TransHwayBulkOperation obj = new Cls_Business_TransHwayBulkOperation();

            obj.GetAvalBalance(Session["lco_username"].ToString(), out AvalBalance);
            obj.GetRequToday(Session["lco_username"].ToString(), out RequToday);
            obj.GetRequTomor(Session["lco_username"].ToString(), out RequTomor);
            lblAvailBalance.Text = AvalBalance;
            lblRequToday.Text    = RequToday;
            lblRequTomor.Text    = RequTomor;
        }
        protected void lnkShwoAll_Click(object sender, EventArgs e)
        {
            Cls_Business_TransHwayBulkOperation obj = new Cls_Business_TransHwayBulkOperation();
            string pro_output  = obj.bulkUploadDuplicate(Session["username"].ToString(), ViewState["uniqueid"].ToString());
            string raw_message = pro_output.Split('#')[1];

            if (raw_message.Contains('~'))
            {
                string[]  err_data  = raw_message.TrimEnd('~').Split('~');
                DataTable dtErrData = generateDataTable(err_data);
                rptErrData.DataSource = dtErrData;
                rptErrData.DataBind();
                pnlErrData.Visible = true;
            }
        }
 protected void btncnfmBlck_Click(object sender, EventArgs e)
 {
     try
     {
         Cls_Business_TransHwayBulkOperation obj = new Cls_Business_TransHwayBulkOperation();
         string pro_output = obj.bulkUploadActTempRemove(Session["Bulk_ID"].ToString(), Session["uniqueid"].ToString(), Session["processdt"].ToString(), Session["username"].ToString().Trim());
         if (pro_output.Split('#')[0] == "9999")
         {
             lblResponseMsg.Text = "Selected Data Removed Successfully";
             Binddata();
         }
     }
     catch (Exception ex)
     {
         Response.Write("Error : " + ex.Message.Trim());
         return;
     }
 }