private void method_0() { var action = (ShopNum1_Address_Action)LogicFactory.CreateShopNum1_Address_Action(); try { string str = string.Empty; if (!string.IsNullOrEmpty(base.MemLoginID)) { str = str + " AND MemLoginID= '" + base.MemLoginID + "' "; } var commonModel = new CommonPageModel { Condition = " AND 1=1 " + str + " AND IsDeleted=0", Currentpage = pageid, Tablename = "ShopNum1_Address", Resultnum = "0", PageSize = PageSize }; DataTable table = action.SelectAddress_List(commonModel); var pl = new PageList1 { PageSize = Convert.ToInt32(PageSize), PageID = Convert.ToInt32(pageid) }; if ((table != null) && (table.Rows.Count > 0)) { pl.RecordCount = Convert.ToInt32(table.Rows[0][0]); } else { pl.RecordCount = 0; } pageDiv.InnerHtml = new PageListBll("main/Account/A_ShipAddress.aspx", true).GetPageListNew(pl); commonModel.Resultnum = "1"; DataTable table3 = action.SelectAddress_List(commonModel); if (table3.Rows.Count > 0) { rep_Address.DataSource = table3.DefaultView; rep_Address.DataBind(); } else { Rep_NoValue.Visible = true; rep_Address.Visible = false; var table2 = new DataTable(); table2.Columns.Add("NoValue", typeof(string)); DataRow row = table2.NewRow(); row["NoValue"] = "暂无信息"; table2.Rows.Add(row); Rep_NoValue.DataSource = table2; Rep_NoValue.DataBind(); } } catch (Exception) { throw; } }
private void method_0() { var action = (ShopNum1_AdvancePaymentModifyLog_Action)LogicFactory.CreateShopNum1_AdvancePaymentModifyLog_Action(); try { string str = string.Empty; str = method_1(str); var commonModel = new CommonPageModel { Condition = " AND 1=1 " + str, Currentpage = pageid, Tablename = "ShopNum1_AdvancePaymentModifyLog", Resultnum = "0", PageSize = PageSize }; DataTable table = action.SelectAdvPaymentModifyLog_List(commonModel); var pl = new PageList1 { PageSize = Convert.ToInt32(PageSize), PageID = Convert.ToInt32(pageid) }; if ((table != null) && (table.Rows.Count > 0)) { pl.RecordCount = Convert.ToInt32(table.Rows[0][0]); } else { pl.RecordCount = 0; } pageDiv.InnerHtml = new PageListBll("main/Account/A_AdPayDetailList.aspx?", true).GetPageListNew(pl); commonModel.Resultnum = "1"; DataTable table2 = action.SelectAdvPaymentModifyLog_List(commonModel); Rep_PayA_AdPayDetailList.DataSource = table2.DefaultView; Rep_PayA_AdPayDetailList.DataBind(); int num = 0; string str3 = Common.Common.GetNameById("COUNT(Guid)", "ShopNum1_AdvancePaymentModifyLog", str); if (!string.IsNullOrEmpty(str3)) { num = Convert.ToInt32(str3); } lab_PayNum.Text = num.ToString(); decimal num2 = 0M; string str2 = Common.Common.GetNameById("SUM(OperateMoney)", "ShopNum1_AdvancePaymentModifyLog", str); if (!string.IsNullOrEmpty(str2)) { num2 = Convert.ToDecimal(str2); } lab_PayDetail.Text = num2.ToString(); } catch { } }
private void method_0() { string text1 = hid_SelectBank.Value; var action = (ShopNum1_AdvancePaymentApplyLog_Action)LogicFactory.CreateShopNum1_AdvancePaymentApplyLog_Action(); new DataTable(); try { string str = string.Empty; if (!string.IsNullOrEmpty(Lab_MemLoginID.Text.Trim())) { str = str + " AND MemLoginID= '" + base.MemLoginID + "' "; str = method_1(str); } var commonModel = new CommonPageModel { Condition = " AND 1=1 " + str + " AND IsDeleted=0 ", Currentpage = pageid, Resultnum = "0", Tablename = "ShopNum1_AdvancePaymentApplyLog", PageSize = PageSize }; DataTable table2 = action.SelectAdvPayment_List(commonModel); var pl = new PageList1 { PageSize = Convert.ToInt32(PageSize), PageID = Convert.ToInt32(pageid) }; if ((table2 != null) && (table2.Rows.Count > 0)) { pl.RecordCount = Convert.ToInt32(table2.Rows[0][0]); } else { pl.RecordCount = 0; } pageDiv.InnerHtml = new PageListBll("main/Account/A_AdPayDecrease.aspx", true).GetPageListNew(pl); commonModel.Resultnum = "1"; DataTable table = action.SelectAdvPayment_List(commonModel); string str3 = Common.Common.GetNameById("SUM(cast(OperateMoney as float))", "ShopNum1_AdvancePaymentApplyLog", str); if (!string.IsNullOrEmpty(str3)) { lab_PayDecrease.Text = str3; } else { lab_PayDecrease.Text = "0"; } string str2 = Common.Common.GetNameById("COUNT(Guid)", "ShopNum1_AdvancePaymentApplyLog", str); if (!string.IsNullOrEmpty(str2)) { lab_PayNum.Text = str2; } else { lab_PayNum.Text = "0"; } if (table.Rows.Count > 0) { Rep_NoValue.Visible = false; Rep_PayDecrease.DataSource = table.DefaultView; Rep_PayDecrease.DataBind(); } else { Rep_NoValue.Visible = true; var table3 = new DataTable(); table3.Columns.Add("NoValue", typeof(string)); DataRow row = table3.NewRow(); row["NoValue"] = "暂无信息"; table3.Rows.Add(row); Rep_NoValue.DataSource = table3; Rep_NoValue.DataBind(); } } catch { } }