| | |
| | | void btnSubmit_ServerClick(object sender, EventArgs e) |
| | | { |
| | | string orderIds = Request["ids"]; |
| | | if (string.IsNullOrEmpty(this.txtFapiaohao.Value.Trim())) |
| | | { |
| | | JavaScript.MessageBox("请输入发票号!", this); |
| | | return; |
| | | } |
| | | |
| | | bool isWin = false; |
| | | OA_Kaipiaoshenqing oA_Kaipiaoshenqing = oA_KaipiaoshenqingBLL.GetModelByKeyid(orderIds.ToGuid2()); |
| | |
| | | oA_Kaipiaoshenqing.Kaipiaoshenqing = 3; |
| | | oA_Kaipiaoshenqing.KaipiaoquerenCreater = CurrentUser.TrueMemberId; |
| | | oA_Kaipiaoshenqing.KaipiaoquerenTime = DateTime.Now; |
| | | oA_Kaipiaoshenqing.Fapiaohao = this.txtFapiaohao.Value.Trim(); |
| | | |
| | | isWin = oA_KaipiaoshenqingBLL.UpdateModel(oA_Kaipiaoshenqing); |
| | | |
| | | |
| | | EC_OrderExtend model = new EC_OrderExtend(); |
| | | model.KaipiaoshenqingId = oA_Kaipiaoshenqing.Keyid; |
| | | model.KaipiaoshenqingTime = oA_Kaipiaoshenqing.KaipiaoquerenTime; |
| | | model.Kaipiaoshenqing = 3; |
| | | model.KaipiaoshenqingCreater = CurrentUser.TrueMemberId; |
| | | |
| | | |
| | | isWin = _eC_OrderBLL.NewUpdateKaipiaoshenqings(model); |
| | | |
| | | if (isWin) |
| | | { |
| | |
| | | this.txtBusinessManager.InnerText = oA_Staff.Name; |
| | | } |
| | | this.txtkaipiaoshijian.InnerText = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | this.txtSellerOrderId.InnerText = oA_Kaipiaoshenqing.SellerOrderId; |
| | | //this.txtSellerOrderId.InnerText = oA_Kaipiaoshenqing.SellerOrderId; |
| | | this.txtshuliang.InnerText = oA_Kaipiaoshenqing.Dingdanshu.ToString(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Dictionary<int, object> searchParam = new Dictionary<int, object>(); |
| | | |
| | | SetParamValue(searchParam, 1, CurrentUser.MemberId); |
| | | SetParamValue(searchParam, 2, ""); |
| | | SetParamValue(searchParam, 3, ""); |
| | | SetParamValue(searchParam, 4, ""); |
| | | SetParamValue(searchParam, 5, ""); |
| | | SetParamValue(searchParam, 6, ""); |
| | | SetParamValue(searchParam, 7, ""); |
| | | SetParamValue(searchParam, 8, ""); |
| | | SetParamValue(searchParam, 9, ""); |
| | | SetParamValue(searchParam, 10, ""); |
| | | SetParamValue(searchParam, 11, ""); |
| | | SetParamValue(searchParam, 12, ""); |
| | | SetParamValue(searchParam, 13, ""); |
| | | SetParamValue(searchParam, 14, ""); |
| | | SetParamValue(searchParam, 15, ""); |
| | | SetParamValue(searchParam, 16, ""); |
| | | SetParamValue(searchParam, 18, (CurrentUser.StaffId > 0 ? 1 : 0)); |
| | | SetParamValue(searchParam, 19, CurrentUser.TrueMemberId); |
| | | SetParamValue(searchParam, 20, CurrentUser.StaffId); |
| | | SetParamValue(searchParam, 21, CurrentUser.TrueName); |
| | | SetParamValue(searchParam, 22, ""); |
| | | SetParamValue(searchParam, 23, ""); |
| | | SetParamValue(searchParam, 24, ""); |
| | | SetParamValue(searchParam, 25, ""); |
| | | SetParamValue(searchParam, 26, orderIds.ToGuid2()); |
| | | SearchParam = searchParam; |
| | | |
| | | |
| | | /// UCPager1.AspNetPager.CurrentPageIndex = 1;//重置页数 |
| | | //再次查询 |
| | | // AspNetPager_PageChanged(UCPager1.AspNetPager, new EventArgs()); |
| | | Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination() |
| | | { |
| | | PageSize = 1000,// UCPager1.AspNetPager.PageSize, |
| | | PageIndex = 1// UCPager1.AspNetPager.CurrentPageIndex |
| | | }; |
| | | IEnumerable<EC_OrderBasic> result = _eC_OrderBasicBLL.SelectModelPage_Seller(pagination, searchParam);//.Where(x=>x.Quchudingdan == 2); |
| | | |
| | | decimal shoukuanmoney = 0; |
| | | this.txtshuliang.InnerText = result.ToList().Count.ToString(); |
| | | |
| | | |
| | | |
| | | |
| | | foreach (EC_OrderBasic eC_OrderBasic in result) |
| | | { |
| | | |
| | | |
| | | |
| | | |
| | | shoukuanmoney += eC_OrderBasic.SumPrice.Value; |
| | | |
| | | |
| | | |
| | | } |
| | | this.txtjine.InnerText = String.Format("{0:F}", shoukuanmoney); |
| | | this.txtjine.InnerText = String.Format("{0:F}", oA_Kaipiaoshenqing.kpmoney + oA_Kaipiaoshenqing.Zengjianmoney); |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 设置查询参数方法 |
| | | /// </summary> |
| | | /// <param name="target">设置目标</param> |
| | | /// <param name="key">键</param> |
| | | /// <param name="value">值</param> |
| | | private static void SetParamValue(Dictionary<int, object> target, int key, object value) |
| | | { |
| | | if (string.IsNullOrEmpty(string.Format("{0}", value))) |
| | | return; |
| | | else |
| | | { |
| | | } |
| | | |
| | | if (target.ContainsKey(key)) |
| | | { |
| | | target[key] = value; |
| | | } |
| | | else |
| | | { |
| | | target.Add(key, value); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询参数 |
| | | /// </summary> |
| | | private Dictionary<int, object> SearchParam |
| | | { |
| | | get |
| | | { |
| | | return ViewState["SearchParam"] as Dictionary<int, object>; |
| | | } |
| | | set |
| | | { |
| | | ViewState["SearchParam"] = value; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |