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];
            }
        }
Пример #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;
            }
        }