Пример #1
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        if (!IsPostBack)
        {
            if ((Request.QueryString.Get("ID") != null))
            {
                string strId = "";
                objEncrypt = new clsEncryption();
                try
                {
                    // strId = objEncrypt.Decrypt(Request.QueryString.Get("ID"), appFunctions.strKey);
                    strId = Request.QueryString.Get("ID");
                    if (strId != "")
                    {
                        objSubOrder  = new tblSubOrder();
                        objDataTable = objSubOrder.GetSubOrderListWithCityStateCountry(strId.TrimEnd(',').Trim(), Convert.ToInt32(Enums.Enums_OrderStatus.Confirmed).ToString(), appFunctions.strSellerName, appFunctions.strMobileNo, appFunctions.strAddress, appFunctions.strCountry, appFunctions.strState, appFunctions.strCity, appFunctions.strPinColde);
                        if (objDataTable.Rows.Count > 0)
                        {
                            foreach (DataRow row in objDataTable.Rows)
                            {
                                row[tblOrder.ColumnNames.AppCreatedDate] = GetDateTime().ToString("dd-MMM-yyyy | hh:mm ") + "hrs";
                            }
                        }

                        dtProductInvoice.DataSource = objDataTable;
                        dtProductInvoice.DataBind();
                        objSubOrder.SetProductInvoiceGenerated(Convert.ToInt32(Enums.Enums_OrderStatus.Confirmed).ToString(), strId.TrimEnd(',').Trim());
                        objSubOrder = null;
                    }
                }
                catch (Exception ex)
                {
                    Response.Write(ex.StackTrace.ToString());
                }
                objEncrypt = null;
            }
        }
    }