protected void Button1_Click(object sender, EventArgs e) { SalesDispatchDAL sdal = new SalesDispatchDAL(); sdal.sentUpdate(int.Parse(OrderID.Text.ToString()), DateTime.Now.ToString("yyyy-MM-dd"), 3, " 问题描述:" + issueInfo.Text.ToString(), float.Parse("0.00")); VSalesDispatch vs = Leyp.SQLServerDAL.Sales.Factory.getSalesDispatchDAL().getByID(int.Parse(OrderID.Text.ToString())); //在接着得到销售订单 VSalesOrder vso = Leyp.SQLServerDAL.Sales.Factory.getSalesOrderDAL().getByID(vs.SalesOrderID); //得到下单用户 string username = vso.UserName; ServiceInfo s = new ServiceInfo(); s.CreateDate = DateTime.Now.ToString("yyyy-MM-dd"); s.Content = "订单号:" + vs.SalesOrderID + "配送错误,请您查询。原因是:" + issueInfo.Text; s.ServiceTitle = "配送问题--" + DateTime.Now.ToString("yyyy-MM-dd"); s.UserName = username; s.TypeID = 2; if (Leyp.SQLServerDAL.Factory.getServiceInfoDAL().insertNewEntity(s)) { Jscript.RefreshParent("MySalesDispatch.aspx"); Jscript.CloseWindow(); } }
protected void databind() { //获取文库编号 int id; if (!int.TryParse(Request["id"], out id)) { Jscript.AlertAndRedirect(this, "参数错误", "List.aspx"); return; } //根据编号获取文库详情 E_WenKu data = new E_WenKu(); data.WenKuID = id; data = new T_WenKu().GetModel(data); if (data == null) { Jscript.ShowMsg("未获取对象", this); return; } //判断swf文件是否存在,若不存在,则直接返回 string flashpath = MLMGC.COMP.Config.GetWenKu("swf\\" + data.FileUrl.Substring(0, data.FileUrl.LastIndexOf(".")) + ".swf"); if (!File.Exists(flashpath)) { Jscript.CloseWindow("对应的文件未找到:"+flashpath); return; } lblCaption.Text = data.Caption; lblIntro.Text = data.Intro; lblKeyword.Text = data.Keywords; lblSize.Text = MLMGC.COMP.CommonMethod.FileSize(data.FileSize); FlashUrl = Config.GetWenKuUrl("swf/"+data.FileUrl.Substring(0, data.FileUrl.LastIndexOf(".")) + ".swf"); }
protected void Button1_Click(object sender, EventArgs e) { SalesOut s = new SalesOut(); SalesOrder so = new SalesOrder(); s.Consignee = Consignee.Text.ToString(); s.CreateDate = CreateDate.Text.ToString(); s.DeliveryID = int.Parse(DeliveryID.SelectedValue.ToString()); s.Description = Description.Text.ToString(); s.SalesOutID = SalesOutID.Text.ToString(); s.UserName = getUserName(); s.TradeDate = TradeDate.Text.ToString(); s.SalesOrderID = SalesOrderID.Text.ToString(); so.CustomerArea = CustomerArea.Value.ToString(); so.CustomerID = CustomerIDType.Value + CustomerID.Text.ToString(); so.CustomerName = CustomerName.Text.ToString(); so.CustomerPost = CustomerPost.Text.ToString(); so.CustomerTel = CustomerTel.Text.ToString(); so.Discount = float.Parse(Discount.Text.ToString()); so.AttachPay = float.Parse(AttachPay.Text.ToString()); so.SalesOrderID = SalesOrderID.Text.ToString(); so.PlatformID = int.Parse(Platform.SelectedValue.ToString()); if (Leyp.SQLServerDAL.Sales.Factory.getSalesOrderDAL().updateCustomerInfo(so)) //顾客信息更新成功 { Leyp.SQLServerDAL.Sales.Factory.getSalesOutDAL().updataEntity(s); Jscript.RefreshParent("Manager_SalesOutOrder.aspx"); Jscript.CloseWindow(); } }
protected void Button1_Click(object sender, EventArgs e) { float cost = float.Parse("0.00"); cost = float.Parse(Postage.Text.ToString()); if (Leyp.SQLServerDAL.Sales.Factory.getSalesDispatchDAL().sentUpdate(int.Parse(Label3.Text.ToString()), SentDate.Text.ToString(), int.Parse(DropDownList1.SelectedValue.ToString()), " 发货单号:" + SentNum.Text.ToString(), cost)) { Jscript.RefreshParent(Label4.Text.ToString()); Jscript.CloseWindow(); } else { Jscript.AjaxAlert(this, "操作失败!"); return; } }
protected void gotoList_Click(object sender, EventArgs e) { Jscript.RefreshParent(string.Format("Manager_SalesOutOrder.aspx?action=no&baginData={0}&endData={1}&side={2}", "1000", "3000", 2)); Jscript.CloseWindow(); }