public ZhongXin() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = ZhongXinFactory.Create(); MySupplier = SupplierFactory.CreateSupplier(); DBHelper = SQLHelperFactory.CreateSQLHelper(); pub = new Public_Class(); sendmessages = new ZhongXinUtil.SendMessages(); //Supplier_ID = tools.CheckInt(Session["supplier_id"].ToString()); //佣金 CommissionAccNo = System.Configuration.ConfigurationManager.AppSettings["zhongxin_commissionaccno"]; CommissionAccNm = System.Configuration.ConfigurationManager.AppSettings["zhongxin_commissionaccnm"]; //交易保证金 GuaranteeAccNo = System.Configuration.ConfigurationManager.AppSettings["zhongxin_dealguaranteeaccno"]; GuaranteeAccNm = System.Configuration.ConfigurationManager.AppSettings["zhongxin_dealguaranteeaccnm"]; }
//获取合同附加订单(打印) public string GetPrintContractOrdersByContractsID(int Contract_ID) { string strHTML = ""; int i = 0; strHTML += "<table border=\"0\" width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>"; strHTML += "<table border=\"0\" width=\"608\" align=\"right\" class=\"list_tab\" style=\"border:1px solid #000000;\" cellpadding=\"0\" cellspacing=\"0\">"; strHTML += " <tr bgcolor=\"#ffffff\">"; strHTML += " <td align=\"center\" style=\"height:25px;\" width=\"50\">序号</td>"; strHTML += " <td align=\"center\">订单编号</td>"; strHTML += " <td align=\"center\">商品种类</td>"; strHTML += " <td align=\"center\">数量</td>"; strHTML += " <td align=\"center\">订单金额</td>"; strHTML += " <td align=\"center\">下单时间</td>"; strHTML += " </tr>"; int Goods_Amount = 0; double Goods_Sum = 0; IList <OrdersGoodsInfo> GoodsListAll = null; ContractInfo Contract = GetContractByID(Contract_ID); if (Contract != null) { IList <OrdersInfo> ordersinfos = MyOrders.GetOrderssByContractID(Contract_ID); if (ordersinfos != null) { foreach (OrdersInfo ordersinfo in ordersinfos) { Goods_Sum = 0; Goods_Amount = 0; i = i + 1; GoodsListAll = MyOrders.GetGoodsListByOrderID(ordersinfo.Orders_ID); if (GoodsListAll != null) { foreach (OrdersGoodsInfo good in GoodsListAll) { if ((good.Orders_Goods_ParentID == 0 && good.Orders_Goods_Type != 2) || good.Orders_Goods_ParentID > 0) { Goods_Amount = Goods_Amount + 1; Goods_Sum = Goods_Sum + good.Orders_Goods_Amount; } } } strHTML += " <tr bgcolor=\"#ffffff\">"; strHTML += " <td align=\"left\">" + i + "</td>"; strHTML += " <td align=\"left\">" + ordersinfo.Orders_SN + "</td>"; strHTML += " <td align=\"left\">" + Goods_Amount + "</td>"; strHTML += " <td align=\"left\">" + Goods_Sum + "</td>"; strHTML += " <td align=\"left\">" + Public_Class.DisplayCurrency(ordersinfo.Orders_Total_AllPrice) + "</td>"; strHTML += " <td align=\"left\">" + ordersinfo.Orders_Addtime + "</td>"; strHTML += " </tr>"; } } } strHTML += " </table></td></tr></table>"; return(strHTML); }
public NetPayClient() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; pub = new Public_Class(); //pub.SetCurrentSite(); priKeyPath = System.Configuration.ConfigurationManager.AppSettings["priKeyPath"].ToString(); pubKeyPath = System.Configuration.ConfigurationManager.AppSettings["pubKeyPath"].ToString(); }
public SysMessage() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = SysMessageFactory.CreateSysMessage(); pub = new Public_Class(); }
public ProductTag() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = ProductTagFactory.CreateProductTag(); MyProduct = ProductFactory.CreateProduct(); pub = new Public_Class(); }
public Shop() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); myshop = SupplierShopFactory.CreateSupplierShop(); Myproduct = ProductFactory.CreateProduct(); pub = new Public_Class(); addr = new Addr(); supplier = new Supplier(); pageurl = new PageURL(); }
public SupplierStatistics() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); DBHelper = SQLHelperFactory.CreateSQLHelper(); JsonHelper = JsonHelperFactory.CreateJsonHelper(); product = new Product(); pub = new Public_Class(); supplier = new Supplier(); pageurl = new PageURL(); category = CategoryFactory.CreateCategory(); }
public Credit() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); HttpHelper = HttpHelperFactory.CreateHttpHelper(); JsonHelper = JsonHelperFactory.CreateJsonHelper(); MyLoanApply = OrdersFactory.CreateOrdersLoanApply(); pub = new Public_Class(); tradesignkey = System.Web.Configuration.WebConfigurationManager.AppSettings["tradesignkey"].ToString(); partner_id = tools.NullStr(Application["CreditPayment_Code"]); loan_url = System.Web.Configuration.WebConfigurationManager.AppSettings["loan-lgs"].ToString(); }
//private U_ILinksApplication MyApplication; public CMS() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; Webnotice = NoticeFactory.CreateNotice(); tools = ToolsFactory.CreateTools(); MyHelpCate = HelpFactory.CreateHelpCate(); MyHelp = HelpFactory.CreateHelp(); MyAbout = AboutFactory.CreateAbout(); mylink = FriendlyLinkFactory.CreateFriendlyLink(); pub = new Public_Class(); mylinkcate = FriendlyLinkFactory.CreateFriendlyLinkCate(); MyNoticeCate = NoticeFactory.CreateNoticeCate(); // MyApplication = U_LinksApplicationFactory.CreateU_LinksApplication(); }
public Suppliers() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); DBHelper = SQLHelperFactory.CreateSQLHelper(); JsonHelper = JsonHelperFactory.CreateJsonHelper(); product = new Product(); pub = new Public_Class(); supplier = new Supplier(); pageurl = new PageURL(); category = CategoryFactory.CreateCategory(); MyPro = ProductFactory.CreateProduct(); MyShop = Glaer.Trade.B2C.BLL.MEM.SupplierShopFactory.CreateSupplierShop(); }
/// <summary> /// 被子线程DataArrival事件处理函数发送到控件线程异步执行的函数 /// </summary> /// <param name="Data">接收的字节数组</param> /// <param name="Ip">远程主机的IP地址</param> /// <param name="Port">远程主机的端口</param> private void DataArrival(byte[] Data, IPAddress Ip, int Port) { try { //将接收的字节数组反序列化 ClassMsg msg = new ClassSerializers().DeSerializeBinary(new System.IO.MemoryStream(Data)) as ClassMsg; switch (msg.msgCommand) { case MsgCommand.Registered: //注册成功 DialogResult = DialogResult.OK; //设置注册窗口对话框结果属性 WritePrivateProfileString("MyQQ", "ID", this.txtServer.Text.Trim(), Public_Class.Get_windows() + @"\MyQQServer.ini"); //向INI文件写入ID键值对 WritePrivateProfileString("MyQQ", "Port", this.txtPort.Text.Trim(), Public_Class.Get_windows() + @"\MyQQServer.ini"); //向INI文件写入Port键值对 WritePrivateProfileString("MyQQ", "Name", this.txtUserName.Text.Trim(), Public_Class.Get_windows() + @"\MyQQServer.ini"); //向INI文件写入Name键值对 break; } } catch { } }
//合同订单所有产品(打印) public string Contract_Orders_Goods_Print(int Contract_ID) { string strHTML = ""; IList <OrdersGoodsInfo> GoodsListAll = null; int freighted_amount; int icount = 0; ContractInfo contractinfo = GetContractByID(Contract_ID); if (contractinfo != null) { strHTML += "<table width=\"635\" border=\"0\" align=\"center\" class=\"list_tab\" style=\"border:1px solid #000000;page-break-before:always;\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#000000\">"; strHTML += "<tr bgcolor=\"#ffffff\">"; strHTML += "<td align=\"center\" style=\"height:25px;\" width=\"50\">序号</td>"; strHTML += "<td align=\"center\">产品名称</td>"; //strHTML += "<td align=\"center\">订单号</td>"; strHTML += "<td align=\"center\">规格型号</td>"; strHTML += "<td align=\"center\">单位</td>"; strHTML += "<td align=\"center\">单价(元)</td>"; if (contractinfo.Contract_Status == 1) { strHTML += "<td align=\"center\">规格</td>"; strHTML += "<td align=\"center\">单价</td>"; strHTML += "<td align=\"center\">数量</td>"; strHTML += "<td align=\"center\">金额</td>"; } else { strHTML += "<td align=\"center\">数量</td>"; } //strHTML += "<td align=\"center\">总价(元)</td>"; strHTML += "</tr>"; IList <OrdersInfo> ordersinfos = MyOrders.GetOrderssByContractID(Contract_ID); if (ordersinfos != null) { foreach (OrdersInfo ordersinfo in ordersinfos) { GoodsListAll = MyOrders.GetGoodsListByOrderID(ordersinfo.Orders_ID); if (GoodsListAll != null) { foreach (OrdersGoodsInfo entity in GoodsListAll) { string Product_Spec = ""; string Product_Unit = ""; ProductInfo productEntity = new Product().GetProductByID(entity.Orders_Goods_Product_ID); if (productEntity != null) { Product_Spec = productEntity.Product_Spec; Product_Unit = productEntity.Product_Unit; if (Product_Unit == "0") { Product_Unit = ""; } } if (entity.Orders_Goods_Type == 2 && entity.Orders_Goods_ParentID == 0) { freighted_amount = 0; } else { icount = icount + 1; strHTML += "<tr bgcolor=\"#ffffff\">"; strHTML += "<td align=\"center\">" + icount + "</td>"; strHTML += "<td align=\"center\">" + entity.Orders_Goods_Product_Name + "</td>"; //strHTML += "<td align=\"center\">" + ordersinfo.Orders_SN + "</td>"; strHTML += "<td align=\"center\">" + Product_Spec + "</td>"; strHTML += "<td align=\"center\">" + Product_Unit + "</td>"; strHTML += "<td align=\"center\">" + entity.Orders_Goods_Product_Price + "</td>"; if (contractinfo.Contract_Status == 1) { strHTML += "<td align=\"center\">" + entity.Orders_Goods_Product_Spec + " </td>"; strHTML += "<td align=\"center\">" + Public_Class.DisplayCurrency(entity.Orders_Goods_Product_Price) + "</td>"; strHTML += "<td align=\"center\">" + (entity.Orders_Goods_Amount) + "</td>"; strHTML += "<td align=\"center\">" + (Public_Class.DisplayCurrency(entity.Orders_Goods_Product_Price * entity.Orders_Goods_Amount)) + "</td>"; } else { strHTML += "<td align=\"center\">" + (entity.Orders_Goods_Amount) + "</td>"; } //strHTML += "<td align=\"center\">" + (entity.Orders_Goods_Product_Price * entity.Orders_Goods_Amount) + "</td>"; strHTML += "</tr>"; } } } } } } strHTML += "</table>"; return(strHTML); }