送货管理 增加查询 业务经理 客户名称 完成 查询送货安排的历史 完成
查询送货单的图片附件 完成
| | |
| | | /// <returns></returns> |
| | | public IEnumerable<EC_OrderBasic> GetModelPageListForPrepayments(Pagination pa, string DeliveryTime, string Province, string City, string County, string BuyerName, string BusinessManagerId, string SellerOrderId, string DocumentName, Guid SellerId) |
| | | { |
| | | string Condition = " and ( ob.[OrderState] ='2' or ob.[OrderState] ='3' and SellerId='"+ SellerId + "' )"; |
| | | string Condition = " and ( ob.[OrderState] ='1' or ob.[OrderState] ='2' or ob.[OrderState] ='3' ) and SellerId='" + SellerId + "' "; |
| | | |
| | | if (!string.IsNullOrEmpty(DeliveryTime)) |
| | | { |
| | |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<OA_DeliverPlan> SelectModelPage(Pagination pa, Guid FirmId, string DeliveredTime, |
| | | string CarId, string DriverId,string trueMemberId ="") |
| | | string CarId, string DriverId,string trueMemberId ="", string CustormerName = "", string BusinessManager = "") |
| | | { |
| | | string Condition = " and od.FirmId ='" + FirmId + "' and od.shifouDelivery = 1 "; |
| | | |
| | | string sort = " case when Sort is null then 1 else 0 end asc,Sort asc "; |
| | | if (!string.IsNullOrEmpty(DeliveredTime) ) |
| | | { |
| | | if(DeliveredTime != "逾期") |
| | | { |
| | | Condition += " and DATEDIFF(day,od.[DeliverTime],'" + DeliveredTime + "')=0 "; |
| | | |
| | | } |
| | | else |
| | | { |
| | | Condition += " and DATEDIFF(day,GETDATE(),od.[DeliverTime])<=0 "; |
| | | Condition += " and DATEDIFF(day,GETDATE(),od.[DeliverTime])<0 and od.[DeliveredTime] is null "; |
| | | sort = " DeliverTime desc,Sort asc "; |
| | | } |
| | | } |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(CarId)) |
| | | Condition += " and od.CarId = '" + CarId + "'"; |
| | | if (!string.IsNullOrEmpty(DriverId)) |
| | | Condition += " and od.DriverId = '" + DriverId + "'"; |
| | | if (!string.IsNullOrEmpty(trueMemberId)) |
| | | Condition += " and oss.MemberId = '" + trueMemberId + "'"; |
| | | if (!string.IsNullOrEmpty(BusinessManager)) |
| | | Condition += " and od.BusinessManagerId = '" + BusinessManager + "'"; |
| | | if (!string.IsNullOrEmpty(CustormerName)) |
| | | Condition += " and od.CompanyName like '%" + CustormerName + "%'"; |
| | | |
| | | Query query = new Query(); |
| | | IList<Criterion> criterias = new List<Criterion>() |
| | | { |
| | | new Criterion("", Condition), |
| | | |
| | | new Criterion("orderBy",sort) |
| | | }; |
| | | query.Criteria = criterias; |
| | | return _IOA_DeliverPlanDAL.SelectModelPage(query, pa); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 查询合作客户分页列表 |
| | | /// </summary> |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<OA_DeliverPlan> SelectModelPageLishi(Pagination pa, Guid FirmId, string DeliveredTimestart, string DeliveredTimeend, |
| | | string CarId, string DriverId, string trueMemberId = "") |
| | | { |
| | | string Condition = " and od.FirmId ='" + FirmId + "' and od.shifouDelivery = 1 "; |
| | | |
| | | if (!string.IsNullOrEmpty(DeliveredTimestart)) |
| | | { |
| | | |
| | | Condition += " and DATEDIFF(day,'"+ DeliveredTimestart + "',od.[DeliverTime])>=0 "; |
| | | |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(DeliveredTimeend)) |
| | | { |
| | | |
| | | Condition += " and DATEDIFF(day,'" + DeliveredTimeend + "',od.[DeliverTime])<=0 "; |
| | | |
| | | } |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(CarId)) |
| | | Condition += " and od.CarId = '" + CarId + "'"; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 查询合作客户分页列表 |
| | | /// </summary> |
| | |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@BuyerId",trueModel.BuyerId), |
| | | DeliveredTime, |
| | | new SqlParameter("@Zhuyishixiang",trueModel.Zhuyishixiang), |
| | | new SqlParameter("@Gongzuokaoping",trueModel.Gongzuokaoping), |
| | | new SqlParameter("@Zhuyishixiang",string.IsNullOrEmpty(trueModel.Zhuyishixiang)?"":trueModel.Zhuyishixiang ), |
| | | new SqlParameter("@Gongzuokaoping",string.IsNullOrEmpty(trueModel.Gongzuokaoping)?"":trueModel.Gongzuokaoping ), |
| | | new SqlParameter("@CarId",trueModel.CarId), |
| | | new SqlParameter("@DriverId",trueModel.DriverId), |
| | | new SqlParameter("@Transferstatus",trueModel.Transferstatus), |
| | |
| | | new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime.HasValue?trueModel.LastUpdateTime.Value:DateTime.MinValue), |
| | | new SqlParameter("@Sort",trueModel.Sort), |
| | | new SqlParameter("@DeliverTime",trueModel.DeliverTime), |
| | | new SqlParameter("@wentifankui",trueModel.wentifankui), |
| | | new SqlParameter("@Yichangchuli",trueModel.Yichangchuli), |
| | | new SqlParameter("@Xingzhengzhuize",trueModel.Xingzhengzhuize), |
| | | new SqlParameter("@wentifankui",string.IsNullOrEmpty(trueModel.wentifankui)?"":trueModel.wentifankui), |
| | | new SqlParameter("@Yichangchuli",string.IsNullOrEmpty(trueModel.Yichangchuli)?"":trueModel.Yichangchuli), |
| | | new SqlParameter("@Xingzhengzhuize",string.IsNullOrEmpty(trueModel.Xingzhengzhuize)?"":trueModel.Xingzhengzhuize), |
| | | new SqlParameter("@SellerOrderId",trueModel.SellerOrderId), |
| | | new SqlParameter("@Dianhua",trueModel.Dianhua), |
| | | new SqlParameter("@Dizhi",trueModel.Dizhi), |
| | | new SqlParameter("@Remark",trueModel.Remark), |
| | | new SqlParameter("@BusinessManagerId",trueModel.BusinessManagerId), |
| | | new SqlParameter("@Biddingcompany",trueModel.Biddingcompany), |
| | | new SqlParameter("@Biddingcompany",trueModel.Biddingcompany.HasValue?trueModel.Biddingcompany.Value:0), |
| | | new SqlParameter("@shifouDelivery",trueModel.shifouDelivery), |
| | | new SqlParameter("@Lianxiren",trueModel.Lianxiren), |
| | | new SqlParameter("@CompanyName",string.IsNullOrEmpty(trueModel.CompanyName)?"":trueModel.CompanyName), |
| | |
| | | <Content Include="Pages\business\Caigoufukuanshenqing.aspx" /> |
| | | <Content Include="Pages\business\Baozhengjinfukuan.aspx" /> |
| | | <Content Include="Pages\business\BaozhengjinCuishou.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanFujianShow.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanLishiList.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanYijiao.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanPaiche.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanShifou.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanLishiPrint.aspx" /> |
| | | <Content Include="Pages\business\OrderUpLoadLiuyang.aspx" /> |
| | | <Content Include="Pages\business\WaixieOrderPrint.aspx" /> |
| | | <Content Include="Pages\business\Waixiefukuanweikaipiao.aspx" /> |
| | |
| | | <Compile Include="Pages\business\BaozhengjinCuishou.aspx.designer.cs"> |
| | | <DependentUpon>BaozhengjinCuishou.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanFujianShow.aspx.cs"> |
| | | <DependentUpon>DeliverPlanFujianShow.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanFujianShow.aspx.designer.cs"> |
| | | <DependentUpon>DeliverPlanFujianShow.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanLishiList.aspx.cs"> |
| | | <DependentUpon>DeliverPlanLishiList.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanLishiList.aspx.designer.cs"> |
| | | <DependentUpon>DeliverPlanLishiList.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanYijiao.aspx.cs"> |
| | | <DependentUpon>DeliverPlanYijiao.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | <Compile Include="Pages\business\DeliverPlanShifou.aspx.designer.cs"> |
| | | <DependentUpon>DeliverPlanShifou.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanLishiPrint.aspx.cs"> |
| | | <DependentUpon>DeliverPlanLishiPrint.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanLishiPrint.aspx.designer.cs"> |
| | | <DependentUpon>DeliverPlanLishiPrint.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\OrderUpLoadLiuyang.aspx.cs"> |
| | | <DependentUpon>OrderUpLoadLiuyang.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanFujianShow.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanFujianShow" %> |
| | | |
| | | <%-- 合同浏览页面。主要是用来按照以浏览方式 --%> |
| | | <!DOCTYPE html> |
| | | |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head runat="server"> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title></title> |
| | | <script src="./../../js/PictureShow/spotlight.bundle.js"></script> |
| | | <style type="text/css"> |
| | | |
| | | .textcenter{text-align:center} |
| | | .horizontal{ |
| | | float:left; |
| | | border:1px solid black; |
| | | margin-left:20px; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <form id="form1" runat="server"> |
| | | <div class="textcenter">送货单图片预览</div> |
| | | |
| | | |
| | | <asp:Repeater id="RepClientList" runat="server"> |
| | | <ItemTemplate> |
| | | <div class="textcenter horizontal" width="100" > |
| | | <a <%--class="spotlight"--%> title="点击查看原图" href="<%#Eval("FilePath").ToString() %>" target="view_window" > |
| | | |
| | | <img src="<%#Eval("FilePath").ToString() %>" width="100" height="200" > |
| | | |
| | | |
| | | </a> |
| | | <p >第<%#Eval("PageCode")%>张</p> |
| | | |
| | | </div> |
| | | </ItemTemplate> |
| | | |
| | | </asp:Repeater> |
| | | |
| | | |
| | | </form> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </html> |
New file |
| | |
| | | using CY.Infrastructure.Common; |
| | | using CY.Infrastructure.Logging; |
| | | using CY.Model.OA; |
| | | using CY.SQLDAL; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data.SqlClient; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using static CY.WebForm.MainPage; |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | public partial class DeliverPlanFujianShow : System.Web.UI.Page |
| | | { |
| | | /// <summary> |
| | | /// 合同附件集合 |
| | | /// </summary> |
| | | List<OA_CorporateClientsContract> fileDataList { set; get; } = new List<OA_CorporateClientsContract>(); |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | ReadList(); |
| | | } |
| | | |
| | | |
| | | private void ReadList() |
| | | { |
| | | |
| | | Guid Keyid = Request["Keyid"].ToGuid2(); |
| | | |
| | | if (Keyid == null) |
| | | { |
| | | JavaScript.MessageBox("未找到该客户", this, false, false); |
| | | return; |
| | | } |
| | | Database DC = new Database(); |
| | | string sqlStr = string.Format(@" select * from [dbo].[OA_attachment] where [OA_Id]='{0}' and [AttachmentType]=3 order by [CreateTime] ", Keyid); |
| | | int count = 0; |
| | | try |
| | | { |
| | | SqlCommand myCmd = new SqlCommand(sqlStr, DC.Connection); |
| | | //SqlDataAdapter myDa = new SqlDataAdapter(myCmd); |
| | | var a = myCmd.ExecuteReader(); |
| | | //myDa.Dispose(); |
| | | fileDataList = new List<OA_CorporateClientsContract>(); |
| | | OA_CorporateClientsContract Contract; |
| | | var i = 1; |
| | | while (a.Read()) |
| | | { //注意如何将每次读取到的记录添加到listbox1中(因为第一次做时出错了,嘿嘿) |
| | | Contract = new OA_CorporateClientsContract(); |
| | | // Contract.Keyid = a.GetInt32(0); |
| | | //Contract.CorporateClientsid = a.GetGuid(1); |
| | | //Contract.CorporateClientsName = a.GetString(4); |
| | | Contract.FileName = a[4].ToString(); |
| | | Contract.PageCode = i; |
| | | Contract.FilePath = a.GetString(2); |
| | | // Contract.Remark = a.GetString(6); |
| | | i += 1; |
| | | |
| | | fileDataList.Add(Contract); |
| | | } |
| | | a.Close(); //关闭sqldatareader |
| | | sqlStr = string.Format("select count(*) from [dbo].[OA_attachment] where [OA_Id]='{0}' and [AttachmentType]=3 ", Keyid); |
| | | myCmd = new SqlCommand(sqlStr, DC.Connection); |
| | | count = (int)myCmd.ExecuteScalar(); |
| | | |
| | | |
| | | } |
| | | catch (Exception ee) |
| | | { |
| | | new Log4NetAdapter().Log("查找送货单图片出错:" + ee.Message); |
| | | |
| | | } |
| | | finally |
| | | { |
| | | if (DC.Connection.State != System.Data.ConnectionState.Closed) |
| | | DC.Connection.Close(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | this.RepClientList.DataSource = fileDataList;// fileDataList.AsEnumerable<OA_CorporateClientsContract>(); |
| | | |
| | | this.RepClientList.DataBind(); |
| | | |
| | | |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | |
| | | |
| | | public partial class DeliverPlanFujianShow |
| | | { |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// RepClientList 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater RepClientList; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanLishiList.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanLishiList" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>订单列表</title> |
| | | <uc:cmshead id="CMSHead1" runat="server" /> |
| | | <%-- <script src="../../js/business/Order.js" type="text/javascript"></script>--%> |
| | | <script type="text/javascript"> |
| | | //工作考评 |
| | | function View(Keyid, BuyerId, DeliverTime,Sort) { |
| | | //if (Keyid == '00000000-0000-0000-0000-000000000000') { |
| | | // alert("请先安排送货!"); |
| | | // return; |
| | | //} |
| | | |
| | | top.Dialog.open({ URL: "/Pages/business/DeliverPlanSort.aspx?Keyid=" + Keyid + "&BuyerId=" + BuyerId + "&DeliverTime=" + DeliverTime + "&Sort=" + Sort, Title: "送货安排排序", Width: 300, Height: 300 }); |
| | | } |
| | | |
| | | //工作考评 |
| | | function ViewZhuyishixiang(Keyid, BuyerId, DeliverTime) { |
| | | //if (Keyid == '00000000-0000-0000-0000-000000000000') { |
| | | // alert("请先安排送货!"); |
| | | // return; |
| | | //} |
| | | |
| | | top.Dialog.open({ URL: "/Pages/business/DeliverPlanZhuyishixiang.aspx?Keyid=" + Keyid + "&BuyerId=" + BuyerId + "&DeliverTime=" + DeliverTime , Title: "送货安排注意事项", Width: 800, Height: 300 }); |
| | | } |
| | | |
| | | //工作考评 |
| | | function ViewGongzuokaoping(Keyid, BuyerId, DeliverTime) { |
| | | //if (Keyid == '00000000-0000-0000-0000-000000000000') { |
| | | // alert("请先安排送货!"); |
| | | // return; |
| | | //} |
| | | |
| | | top.Dialog.open({ URL: "/Pages/business/DeliverPlanGongzuokaoping.aspx?Keyid=" + Keyid + "&BuyerId=" + BuyerId + "&DeliverTime=" + DeliverTime , Title: "送货安排工作考评", Width: 800, Height: 300 }); |
| | | } |
| | | |
| | | |
| | | //送货安排 |
| | | function ToAddorder() { |
| | | top.Dialog.open({ URL: "/Pages/business/DeliverPlanEdit.aspx", Title: "新增送货单", Width: 900, Height: 750 }); |
| | | } |
| | | |
| | | //送货安排 |
| | | function outAfterWorks(Keyid, BuyerId, DeliveredTime) { |
| | | top.Dialog.open({ URL: "/Pages/business/OrderProductionprogress.aspx?SellerOrderId=" + SellerOrderId + "&Keyid=" + Keyid + "&works=" + works, Title: works, Width: 300, Height: 300 }); |
| | | } |
| | | //打印 |
| | | function outAfterWorks(Keyid) { |
| | | if (Keyid == '00000000-0000-0000-0000-000000000000') { |
| | | alert("请先安排送货!"); |
| | | return; |
| | | } |
| | | top.Dialog.open({ URL: "/Pages/business/DeliverPlanPrint.aspx?Keyid=" + Keyid + "&DelayTime=2021-04-09", Title: "工作考评", Width: 1000, Height: 800 }); |
| | | } |
| | | |
| | | ///批量受理 |
| | | function ToAllAccept1() { |
| | | |
| | | var ids = ''; |
| | | var cks = $("input[name='ckId']:checked"); |
| | | if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { } |
| | | var isCan = true; |
| | | var DeliverTime = ''; |
| | | var BuyerId = ''; |
| | | |
| | | |
| | | |
| | | cks.each( |
| | | function () { |
| | | var ckVal = $(this).val(); |
| | | |
| | | var ckValJson = eval('(' + ckVal + ')'); |
| | | |
| | | ids = ids + ',' + ckValJson.id; |
| | | //orderShowIds = orderShowIds + ',' + ckValJson.ordershowId; |
| | | |
| | | DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime; |
| | | BuyerId = BuyerId + ',' + ckValJson.BuyerId; |
| | | } |
| | | ); |
| | | |
| | | |
| | | if (!isCan) { |
| | | // alertMsg('请选择未受理的订单!'); |
| | | } |
| | | else { |
| | | if (ids != '') { |
| | | ids = ids.substring(1); |
| | | DeliverTime = DeliverTime.substring(1); |
| | | BuyerId = BuyerId.substring(1); |
| | | } |
| | | |
| | | var msg = ('确认移交单据吗?') ; |
| | | top.Dialog.confirm(msg, function () { |
| | | DoAcceptAll(ids, DeliverTime, BuyerId); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /* |
| | | 批量处理受理订单 |
| | | */ |
| | | var DoAcceptAll = function (orderIds, DeliverTime, BuyerId) { |
| | | CallServer({ Target: "AcceptOrderAll", ids: orderIds, DeliverTimes: DeliverTime, BuyerIds: BuyerId }, function (data, textStatus) { |
| | | if ('1' == data) { |
| | | alertMsg('操作成功!'); |
| | | RefreshDIVOpener(); //关闭页面 |
| | | } else { |
| | | alertMsg('-1' == data ? '移交单据失败!' : '移交单据失败!'); |
| | | //dialog.close(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | ///批量受理 |
| | | function ToAllAccept3() { |
| | | |
| | | var ids = ''; |
| | | var cks = $("input[name='ckId']:checked"); |
| | | if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { } |
| | | var isCan = true; |
| | | var DeliverTime = ''; |
| | | var BuyerId = ''; |
| | | |
| | | //var carid = $("#selCarIddo").val(); |
| | | //var driverid = $("#selDriverIddo").val(); |
| | | |
| | | //if (carid == "") { alertMsg('请选择车辆!'); return; } else { } |
| | | //if (driverid == "") { alertMsg('请选择驾驶员!'); return; } else { } |
| | | |
| | | cks.each( |
| | | function () { |
| | | var ckVal = $(this).val(); |
| | | |
| | | var ckValJson = eval('(' + ckVal + ')'); |
| | | |
| | | ids = ids + ',' + ckValJson.id; |
| | | //orderShowIds = orderShowIds + ',' + ckValJson.ordershowId; |
| | | |
| | | DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime; |
| | | BuyerId = BuyerId + ',' + ckValJson.BuyerId; |
| | | } |
| | | ); |
| | | |
| | | |
| | | if (!isCan) { |
| | | // alertMsg('请选择未受理的订单!'); |
| | | } |
| | | else { |
| | | if (ids != '') { |
| | | ids = ids.substring(1); |
| | | //DeliverTime = DeliverTime.substring(1); |
| | | //BuyerId = BuyerId.substring(1); |
| | | } |
| | | |
| | | top.Dialog.open({ URL: "/Pages/business/DeliverPlanPaiche.aspx?ids=" + ids, Title: "安排车辆", Width: 600, Height: 300 }); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | ///批量受理 |
| | | function ToAllAccept4() { |
| | | |
| | | var ids = ''; |
| | | var cks = $("input[name='ckId']:checked"); |
| | | if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { } |
| | | var isCan = true; |
| | | var DeliverTime = ''; |
| | | var BuyerId = ''; |
| | | |
| | | //var carid = $("#selCarIddo").val(); |
| | | //var driverid = $("#selDriverIddo").val(); |
| | | |
| | | //if (carid == "") { alertMsg('请选择车辆!'); return; } else { } |
| | | //if (driverid == "") { alertMsg('请选择驾驶员!'); return; } else { } |
| | | |
| | | cks.each( |
| | | function () { |
| | | var ckVal = $(this).val(); |
| | | |
| | | var ckValJson = eval('(' + ckVal + ')'); |
| | | |
| | | ids = ids + ',' + ckValJson.id; |
| | | //orderShowIds = orderShowIds + ',' + ckValJson.ordershowId; |
| | | |
| | | DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime; |
| | | BuyerId = BuyerId + ',' + ckValJson.BuyerId; |
| | | } |
| | | ); |
| | | |
| | | |
| | | if (!isCan) { |
| | | // alertMsg('请选择未受理的订单!'); |
| | | } |
| | | else { |
| | | if (ids != '') { |
| | | ids = ids.substring(1); |
| | | //DeliverTime = DeliverTime.substring(1); |
| | | //BuyerId = BuyerId.substring(1); |
| | | } |
| | | |
| | | top.Dialog.open({ URL: "/Pages/business/DeliverPlanYijiao.aspx?ids=" + ids, Title: "单据移交", Width: 600, Height: 300 }); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | ///批量受理 |
| | | function ToAllAccept2() { |
| | | |
| | | var ids = ''; |
| | | var cks = $("input[name='ckId']:checked"); |
| | | if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { } |
| | | var isCan = true; |
| | | var DeliverTime = ''; |
| | | var BuyerId = ''; |
| | | |
| | | var carid = $("#selCarIddo").val(); |
| | | var driverid = $("#selDriverIddo").val(); |
| | | |
| | | if (carid == "") { alertMsg('请选择车辆!'); return; } else { } |
| | | if (driverid == "") { alertMsg('请选择驾驶员!'); return; } else { } |
| | | |
| | | cks.each( |
| | | function () { |
| | | var ckVal = $(this).val(); |
| | | |
| | | var ckValJson = eval('(' + ckVal + ')'); |
| | | |
| | | ids = ids + ',' + ckValJson.id; |
| | | //orderShowIds = orderShowIds + ',' + ckValJson.ordershowId; |
| | | |
| | | DeliverTime = DeliverTime + ',' + ckValJson.DeliverTime; |
| | | BuyerId = BuyerId + ',' + ckValJson.BuyerId; |
| | | } |
| | | ); |
| | | |
| | | |
| | | if (!isCan) { |
| | | // alertMsg('请选择未受理的订单!'); |
| | | } |
| | | else { |
| | | if (ids != '') { |
| | | ids = ids.substring(1); |
| | | DeliverTime = DeliverTime.substring(1); |
| | | BuyerId = BuyerId.substring(1); |
| | | } |
| | | |
| | | var msg = ('确认派车吗?'); |
| | | top.Dialog.confirm(msg, function () { |
| | | DoAcceptAll2(ids, DeliverTime, BuyerId, carid, driverid); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /* |
| | | 批量处理受理订单 |
| | | */ |
| | | var DoAcceptAll2 = function (orderIds, DeliverTime, BuyerId, carid, driverid) { |
| | | CallServer({ Target: "AcceptOrderAll2", ids: orderIds, DeliverTimes: DeliverTime, BuyerIds: BuyerId, Carid: carid, Driverid: driverid}, function (data, textStatus) { |
| | | if ('1' == data) { |
| | | alertMsg('操作成功!'); |
| | | RefreshDIVOpener(); //关闭页面 |
| | | } else { |
| | | alertMsg('-1' == data ? '派车失败!' : '派车失败!'); |
| | | //dialog.close(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | /* |
| | | 打印送货单 |
| | | */ |
| | | function ToPrintDriverorder(DriverId) { |
| | | |
| | | OpenWindowByUrl('/Pages/business/DeliverOrderPrint.aspx?deliverorderId=' + DriverId, '', ''); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //维护 |
| | | function onViewuplod(keyid) { |
| | | var l = (screen.availWidth - 500) / 2; |
| | | var t = (screen.availHeight - 300) / 2; |
| | | // window.open({ URL: "/Pages/business/CorporateClientsUpLoadContract.aspx?Keyid=" + keyid, Title: "查看合同", Width: 900, Height: 750 }); |
| | | window.open('/Pages/business/DeliverPlanFujianShow.aspx?Keyid=' + keyid, '_blank', 'height=750,width=900,top=' + t + ',left=' + l + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no'); |
| | | } |
| | | |
| | | /* |
| | | 打印送货单 |
| | | */ |
| | | function ToPrintdelev() { |
| | | var DeliverTimestart = $("#txtDeliverTimestart").val(); |
| | | var DeliverTimeend = $("#txtDeliverTimeend").val(); |
| | | var CarId = $("#selCarId").val(); |
| | | var DriverId = $("#selDriverId").val(); |
| | | // OpenWindowByUrl(); |
| | | //OpenWindowByUrl('/Pages/business/DeliverPlanPrint.aspx?DeliverTime=' + DeliveryTime + '&CarId=' + CarId + '&DriverId=' + DriverId, '', ''); |
| | | OpenWindowByUrl('/Pages/business/DeliverPlanLishiPrint.aspx?DeliverTimestart=' + DeliverTimestart + '&DeliverTimeend=' + DeliverTimeend + '&CarId=' + CarId + '&DriverId=' + DriverId, '', ''); |
| | | } |
| | | </script> |
| | | <style type="text/css"> |
| | | .tableStyleXS th { padding: 1px 0 1px 3px; background-image:none; border-bottom:1px solid #CCC; } |
| | | .tableStyleXS td { padding: 1px 0 1px 3px; } |
| | | .TableNewStyle select { width: 80px; } |
| | | .td_hide span { text-decoration: default; display: none; text-align: center; } |
| | | span.hand_no { cursor: default; display: block; font-size: 12px; } |
| | | span.hand_no:hover { text-decoration: none; } |
| | | span.hand_yes { cursor: pointer; display: block; font-size: 12px; } |
| | | .td_hide { cursor: pointer; } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <form id="form1" runat="server"> |
| | | <div id="scrollContent" style="width: auto;"> |
| | | <div class="box1"> |
| | | <table class="TableNewStyle" style="width: 100%;"> |
| | | <tr> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <td style="width:5%" > |
| | | |
| | | </td> |
| | | <td style="width:15%"> |
| | | |
| | | </td> <td style="width:5%" > |
| | | |
| | | </td> |
| | | <td style="width:15%"> |
| | | |
| | | </td> <td style="width:5%" > |
| | | |
| | | </td> |
| | | <td style="width:15%"> |
| | | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 送货时间: |
| | | </td> |
| | | <td > |
| | | <input id="txtDeliverTimestart" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtDeliverTimeend" type="text" runat="server" class='date w80px' maxlength='10' /> |
| | | </td> |
| | | <td class="ali03"> |
| | | 车辆: |
| | | </td> |
| | | <td > |
| | | <select keepdefaultstyle='true' id='selCarId' runat="server" datatextfield='CarNumber' datavaluefield='Keyid'> |
| | | </select> |
| | | </td> |
| | | <td class="ali03" > |
| | | 驾驶员: |
| | | </td> |
| | | <td > |
| | | <select keepdefaultstyle='true' id='selDriverId' runat="server" datatextfield='Name' datavaluefield='Keyid'> |
| | | </select> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | |
| | | |
| | | |
| | | <td colspan="6"> |
| | | |
| | | <asp:button id="btn_Search" text="查询" runat="server" padding="0px" OnClick="btn_Search_Click" /> <input type="button" value='重置' onclick='document.body.innerHTML="";window.location=window.location;' /> |
| | | |
| | | |
| | | <input type="button" value='打印全部' onclick='ToPrintdelev();' /> |
| | | |
| | | </td> |
| | | </tr> |
| | | |
| | | |
| | | </table> |
| | | </div> |
| | | |
| | | |
| | | <div clear="fl"> |
| | | <table class="tableStyle tableStyleXS" useclick="false" usecheckbox="true" sortmode="false"> |
| | | <thead> |
| | | <tr> |
| | | <th width="25"> |
| | | </th> |
| | | <th width="25"> |
| | | 顺序 |
| | | </th> |
| | | <th style="text-align: center;" width="70"> |
| | | 送货单号 |
| | | </th> |
| | | <th style="text-align: center;" width="70"> |
| | | 要求到达时间 |
| | | </th> |
| | | <th style="text-align: center;"width="100"> |
| | | 实际到达时间 |
| | | </th> |
| | | <th width="70"> |
| | | 业务经理 |
| | | </th> |
| | | <th width="100"> |
| | | 客户单位 |
| | | </th> |
| | | <th style="text-align: center;"width="200"> |
| | | 客户地址、联系人及联系电话 |
| | | </th> |
| | | |
| | | |
| | | <th width="60"> |
| | | 货单数量 |
| | | </th> |
| | | <th width="60"> |
| | | 车辆 |
| | | </th> |
| | | <th width="60"> |
| | | 驾驶员 |
| | | </th> |
| | | <th width="200"> |
| | | 问题反馈 |
| | | </th> |
| | | <th width="200"> |
| | | 注意事项 |
| | | </th> |
| | | <th width="200"> |
| | | 工作考评 |
| | | </th> |
| | | <th width="60"> |
| | | 移交状态 |
| | | </th> |
| | | <th width="60"> |
| | | 打印送货单 |
| | | </th> |
| | | <th width="60"> |
| | | 送货单图片 |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <asp:repeater id="RepClientList" runat="server"> |
| | | <itemtemplate> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" name='ckId' value_keyid="<%#Eval("Keyid")%>" value="{ |
| | | id:'<%#Eval("Keyid")%>', |
| | | DeliverTime: '<%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%>', |
| | | BuyerId:'<%#Eval("BuyerId")%>', |
| | | CarId:'<%#Eval("CarId")%>', |
| | | DriverId:'<%#Eval("DriverId")%>', |
| | | }" id='ckBox<%#Container.ItemIndex%>' id='ckBox<%#Container.ItemIndex%>' class='ckBox' /> |
| | | </td> |
| | | |
| | | <td> |
| | | <%#Eval("Sort")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("SellerOrderId")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("DeliveredTime", "{0:yyyy-MM-dd}")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("BusinessManager")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("BuyerName")%> |
| | | </td> |
| | | |
| | | <td> |
| | | <%#Eval("DizhiLianxirenDianhua")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("shuliang")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("CarName")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("DriverName")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("wentifankui") %> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Zhuyishixiang") %> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Gongzuokaoping")%> |
| | | </td> |
| | | <td style="text-align: center;"> |
| | | <%#Eval("TransferName")==null || Eval("TransferName").ToString()==""?"未移交":Eval("TransferName")%> |
| | | </td> |
| | | <td> |
| | | <a href='javascript:void(0)' title='打印送货单' class='a_under' onclick='ToPrintDriverorder("<%#Eval("Keyid")%>")'> 打印 </a> |
| | | </td> |
| | | <td> |
| | | <a href='javascript:void(0)' title='送货单图片' class='a_under' onclick='onViewuplod("<%#Eval("Keyid")%>")'> 送货单图片 </a> |
| | | </td> |
| | | </tr> |
| | | </itemtemplate> |
| | | </asp:repeater> |
| | | |
| | | </tbody> |
| | | </table> |
| | | <uc:ucpager id="UCPager1" runat="server" /> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
| | | |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL; |
| | | using CY.Model; |
| | | using CY.Infrastructure.Query; |
| | | using CY.Infrastructure.Common; |
| | | using CY.BLL.Sys; |
| | | using CY.BLL.OA; |
| | | using CY.BLL.EC; |
| | | using CY.BLL.Inquiry; |
| | | using CY.Model.Inquiry; |
| | | using System.Drawing; |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | public partial class DeliverPlanLishiList : BasePage |
| | | { |
| | | |
| | | OA_DeliverPlanBLL _OA_DeliverPlanBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | OA_CarManageBll _OA_CarManageBll = null; |
| | | |
| | | |
| | | |
| | | //初始化 |
| | | public DeliverPlanLishiList() |
| | | { |
| | | |
| | | _OA_DeliverPlanBLL = new OA_DeliverPlanBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | _OA_CarManageBll = new OA_CarManageBll(); |
| | | |
| | | } |
| | | |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged; |
| | | if (!IsPostBack) |
| | | { |
| | | |
| | | |
| | | |
| | | switch (Request["Target"]) |
| | | { |
| | | |
| | | case "AcceptOrderAll": |
| | | AcceptAll(); |
| | | break; |
| | | case "AcceptOrderAll2": |
| | | AcceptAll2(); |
| | | break; |
| | | default: |
| | | InitialSelectData(); |
| | | BindList(); |
| | | return; |
| | | } |
| | | Response.End(); |
| | | } |
| | | } |
| | | |
| | | |
| | | //加载查询条件 |
| | | protected void InitialSelectData() |
| | | { |
| | | this.selDriverId.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.BF_IsDriver == true);//.Where(x => x.SM_Post.Equals("驾驶员")) ; |
| | | this.selDriverId.DataTextField = "Name"; |
| | | this.selDriverId.DataValueField = "Keyid"; |
| | | this.selDriverId.DataBind(); |
| | | this.selDriverId.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | this.selCarId.DataSource = _OA_CarManageBll.SelectListByFirmId(CurrentUser.MemberId); |
| | | this.selCarId.DataTextField = "CarNumber"; |
| | | this.selCarId.DataValueField = "Keyid"; |
| | | this.selCarId.DataBind(); |
| | | this.selCarId.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | |
| | | this.txtDeliverTimestart.Value = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"); |
| | | this.txtDeliverTimeend.Value = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"); |
| | | |
| | | } |
| | | |
| | | //分页事件 |
| | | protected void AspNetPager1_PageChanged(object src, EventArgs e) |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | //查询事件 |
| | | protected void btn_Search_Click(object sender, EventArgs e) |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | |
| | | //绑定列表 |
| | | private void BindList() |
| | | { |
| | | //EC_OrderBLL eC_OrderBLL = new EC_OrderBLL(); |
| | | //Pagination pa1 = new Pagination(); |
| | | //pa1.PageSize = 1000; |
| | | //pa1.PageIndex = 1; |
| | | //IEnumerable<OA_DeliverPlan> oA_DeliverPlans1 = eC_OrderBLL.GetshoukuantixingList(pa1,CurrentUser.MemberId, "", "", "", "", "", "", ""); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = UCPager1.AspNetPager.PageSize; |
| | | pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; |
| | | |
| | | IEnumerable<OA_DeliverPlan> oA_DeliverPlans = _OA_DeliverPlanBLL.SelectModelPageLishi(pa, |
| | | CurrentUser.MemberId, |
| | | this.txtDeliverTimestart.Value, |
| | | this.txtDeliverTimeend.Value, |
| | | this.selCarId.Value, |
| | | this.selDriverId.Value |
| | | ); |
| | | |
| | | |
| | | |
| | | |
| | | this.RepClientList.DataSource = oA_DeliverPlans; |
| | | |
| | | |
| | | |
| | | this.RepClientList.DataBind(); |
| | | UCPager1.AspNetPager.RecordCount = pa.RecordCount; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 批量受理订单 |
| | | /// </summary> |
| | | public void AcceptAll() |
| | | { |
| | | Response.Clear(); |
| | | |
| | | string ids = string.Empty; |
| | | string DeliverTimes = string.Empty; |
| | | string BuyerIds = string.Empty; |
| | | if (Request["ids"] != null) |
| | | { |
| | | ids = Request["ids"].ToString(); |
| | | } |
| | | if (Request["DeliverTimes"] != null) |
| | | { |
| | | DeliverTimes = Request["DeliverTimes"].ToString(); |
| | | } |
| | | if (Request["BuyerIds"] != null) |
| | | { |
| | | BuyerIds = Request["BuyerIds"].ToString(); |
| | | } |
| | | |
| | | string[] idsArray = ids.Split(','); |
| | | string[] DeliverTimesArray = DeliverTimes.Split(','); |
| | | string[] BuyerIdsArray = BuyerIds.Split(','); |
| | | |
| | | if(idsArray!=null&& idsArray.Length > 0) |
| | | { |
| | | for(int i = 0; i < idsArray.Length; i++) |
| | | { |
| | | bool result = true; |
| | | |
| | | OA_DeliverPlan oA_DeliverPlan = _OA_DeliverPlanBLL.GetModelByKeyid(idsArray[i].ToGuid2(), BuyerIdsArray[i].ToGuid2(), DeliverTimesArray[i].ToDateTime2()); |
| | | if (oA_DeliverPlan == null) |
| | | { |
| | | oA_DeliverPlan = new OA_DeliverPlan(); |
| | | oA_DeliverPlan.Keyid = Guid.NewGuid(); |
| | | oA_DeliverPlan.FirmId = CurrentUser.MemberId; |
| | | oA_DeliverPlan.DeliverTime = DeliverTimesArray[i].ToDateTime2(); |
| | | oA_DeliverPlan.BuyerId = BuyerIdsArray[i].ToGuid2(); |
| | | oA_DeliverPlan.DeliveredTime = null; |
| | | oA_DeliverPlan.Zhuyishixiang = ""; |
| | | oA_DeliverPlan.Gongzuokaoping = ""; |
| | | oA_DeliverPlan.CarId = 0; |
| | | oA_DeliverPlan.DriverId = 0; |
| | | oA_DeliverPlan.Transferstatus = 2; |
| | | oA_DeliverPlan.TransfersTime = DateTime.Now; |
| | | oA_DeliverPlan.Sort = 1; |
| | | oA_DeliverPlan.Creater = CurrentUser.TrueMemberId; |
| | | oA_DeliverPlan.CreateTime = DateTime.Now; |
| | | oA_DeliverPlan.Updater = CurrentUser.TrueMemberId; |
| | | oA_DeliverPlan.LastUpdateTime = DateTime.Now; |
| | | oA_DeliverPlan.wentifankui = ""; |
| | | result = _OA_DeliverPlanBLL.InsertModel(oA_DeliverPlan); |
| | | } |
| | | else |
| | | { |
| | | oA_DeliverPlan.Transferstatus = 2; |
| | | oA_DeliverPlan.TransfersTime = DateTime.Now; |
| | | result = _OA_DeliverPlanBLL.UpdateModel(oA_DeliverPlan); |
| | | } |
| | | if (!result) |
| | | { |
| | | //BindList(); |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | // BindList(); |
| | | Response.Write("1"); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 批量派车 |
| | | /// </summary> |
| | | public void AcceptAll2() |
| | | { |
| | | Response.Clear(); |
| | | int? carid = Request["CarId"].ToInt32(); //this.CarId.Value.ToGuid2(); |
| | | int? driverId = Request["DriverId"].ToInt32(); //this.DriverId.Value.ToGuid2(); |
| | | string ids = string.Empty; |
| | | string DeliverTimes = string.Empty; |
| | | string BuyerIds = string.Empty; |
| | | if (Request["ids"] != null) |
| | | { |
| | | ids = Request["ids"].ToString(); |
| | | } |
| | | if (Request["DeliverTimes"] != null) |
| | | { |
| | | DeliverTimes = Request["DeliverTimes"].ToString(); |
| | | } |
| | | if (Request["BuyerIds"] != null) |
| | | { |
| | | BuyerIds = Request["BuyerIds"].ToString(); |
| | | } |
| | | |
| | | string[] idsArray = ids.Split(','); |
| | | string[] DeliverTimesArray = DeliverTimes.Split(','); |
| | | string[] BuyerIdsArray = BuyerIds.Split(','); |
| | | |
| | | if (idsArray != null && idsArray.Length > 0) |
| | | { |
| | | for (int i = 0; i < idsArray.Length; i++) |
| | | { |
| | | bool result = true; |
| | | |
| | | OA_DeliverPlan oA_DeliverPlan = _OA_DeliverPlanBLL.GetModelByKeyid(idsArray[i].ToGuid2(), BuyerIdsArray[i].ToGuid2(), DeliverTimesArray[i].ToDateTime2()); |
| | | if (oA_DeliverPlan == null) |
| | | { |
| | | oA_DeliverPlan = new OA_DeliverPlan(); |
| | | oA_DeliverPlan.Keyid = Guid.NewGuid(); |
| | | oA_DeliverPlan.FirmId = CurrentUser.MemberId; |
| | | oA_DeliverPlan.DeliverTime = DeliverTimesArray[i].ToDateTime2(); |
| | | oA_DeliverPlan.BuyerId = BuyerIdsArray[i].ToGuid2(); |
| | | oA_DeliverPlan.DeliveredTime = null; |
| | | oA_DeliverPlan.Zhuyishixiang = ""; |
| | | oA_DeliverPlan.Gongzuokaoping = ""; |
| | | oA_DeliverPlan.CarId = carid; |
| | | oA_DeliverPlan.DriverId = driverId; |
| | | oA_DeliverPlan.Transferstatus = 1; |
| | | oA_DeliverPlan.TransfersTime = null; |
| | | oA_DeliverPlan.Sort = 1; |
| | | oA_DeliverPlan.Creater = CurrentUser.TrueMemberId; |
| | | oA_DeliverPlan.CreateTime = DateTime.Now; |
| | | oA_DeliverPlan.Updater = CurrentUser.TrueMemberId; |
| | | oA_DeliverPlan.LastUpdateTime = DateTime.Now; |
| | | oA_DeliverPlan.wentifankui = ""; |
| | | result = _OA_DeliverPlanBLL.InsertModel(oA_DeliverPlan); |
| | | } |
| | | else |
| | | { |
| | | oA_DeliverPlan.CarId = carid; |
| | | oA_DeliverPlan.DriverId = driverId; |
| | | result = _OA_DeliverPlanBLL.UpdateModel(oA_DeliverPlan); |
| | | } |
| | | if (!result) |
| | | { |
| | | // BindList(); |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | //BindList(); |
| | | Response.Write("1"); |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | |
| | | |
| | | public partial class DeliverPlanLishiList |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// txtDeliverTimestart 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtDeliverTimestart; |
| | | |
| | | /// <summary> |
| | | /// txtDeliverTimeend 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtDeliverTimeend; |
| | | |
| | | /// <summary> |
| | | /// selCarId 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selCarId; |
| | | |
| | | /// <summary> |
| | | /// selDriverId 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selDriverId; |
| | | |
| | | /// <summary> |
| | | /// btn_Search 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Search; |
| | | |
| | | /// <summary> |
| | | /// RepClientList 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater RepClientList; |
| | | |
| | | /// <summary> |
| | | /// UCPager1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.UCPager UCPager1; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanLishiPrint.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanLishiPrint" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>异常送货打印</title> |
| | | <script src="../../js/utils/jquery-1.5.1.min.js" type="text/javascript"></script> |
| | | <script src="../../js/common/util.js" type="text/javascript"></script> |
| | | <script src="../../js/common/KeyBehaviorHook.js" type="text/javascript"></script> |
| | | <script src="../../js/common/Printter.js?v=14" type="text/javascript"></script> |
| | | <script src="../../js/common/LodopFuncs.js" type="text/javascript"></script> |
| | | <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" /> |
| | | <!--前台页面start--> |
| | | <style type="text/css"> |
| | | .dbody { margin: 0; margin-left: auto; margin-right: auto; } |
| | | .dtitle { text-align: center; font-size: 19px; font-weight: bold; margin-top: 10px; margin-bottom: 10px; } |
| | | .dbody table { width: 100%; border: 1px solid #dddddd; font-size: 12px; margin-top: 5px; border-top: 1px #999999 solid;} |
| | | .dbody table th, .dbody table td { font-weight: normal; height: 20px; line-height: 20px; vertical-align: middle; border: 1px solid #999999; border-top: 0; } |
| | | .dbody table th { background-color: #E0EDF6; font-weight: bold; } |
| | | .dbody table td { border-left: 0; padding-left:2px; } |
| | | .left {text-align: right; } |
| | | #div_tool { text-align: center; } |
| | | </style> |
| | | <script type="text/javascript"> |
| | | window.printBeginCallBack = function () { |
| | | document.getElementById('fram_operate').style.display = 'none'; |
| | | }; |
| | | window.printOverCallBack = function () { |
| | | document.getElementById('fram_operate').style.display = ''; |
| | | }; |
| | | |
| | | $(function () { |
| | | $("#btnPrint").click(function () { |
| | | var orderId = $("#hideOrderId").val(); |
| | | $.ajax({ |
| | | url: '/Pages/business/OrderProdactionPrintBiaoqian.aspx?tmp' + (new Date()).valueOf(), |
| | | type: "POST", |
| | | async: false, |
| | | data: "Target=print&orderIdStr=" + orderId, |
| | | success: function (dataStr) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | }); |
| | | </script> |
| | | </head> |
| | | <body style='padding: 0; margin: 0;' onbeforeprint="OnPrint()" onafterprint="OnPrintOver()"> |
| | | <form id="form1" runat="server"> |
| | | <input type="hidden" runat="server" id="hideOrderId" /> |
| | | <div class='dbody'> |
| | | <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0"> |
| | | <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="/Pages/common/install_lodop32.exe"></embed> |
| | | </object> |
| | | <div id='div_tool' > |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <table border="1" cellpadding="0" cellspacing="0" style="border: 0;margin-bottom:10px;margin-top:10px;"> |
| | | <thead> |
| | | <tr> |
| | | <th width="25"> |
| | | 顺序 |
| | | </th> |
| | | <th style="text-align: center;" width="70"> |
| | | 送货单号 |
| | | </th> |
| | | <th style="text-align: center;" width="70"> |
| | | 要求到达时间 |
| | | </th> |
| | | <th style="text-align: center;"width="100"> |
| | | 实际到达时间 |
| | | </th> |
| | | <th width="70"> |
| | | 业务经理 |
| | | </th> |
| | | <th width="100"> |
| | | 客户单位 |
| | | </th> |
| | | <th style="text-align: center;"width="200"> |
| | | 客户地址、联系人及联系电话 |
| | | </th> |
| | | |
| | | |
| | | <th width="60"> |
| | | 货单数量 |
| | | </th> |
| | | <th width="60"> |
| | | 车辆 |
| | | </th> |
| | | <th width="60"> |
| | | 驾驶员 |
| | | </th> |
| | | <th width="200"> |
| | | 问题反馈 |
| | | </th> |
| | | <th width="200"> |
| | | 注意事项 |
| | | </th> |
| | | <th width="200"> |
| | | 工作考评 |
| | | </th> |
| | | <th width="60"> |
| | | 移交状态 |
| | | </th> |
| | | |
| | | |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <asp:Repeater runat="server" ID='rptOrder'> |
| | | <ItemTemplate> |
| | | <tr> |
| | | <td> |
| | | <%#Eval("Sort")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("SellerOrderId")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("DeliveredTime", "{0:yyyy-MM-dd}")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("BusinessManager")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("BuyerName")%> |
| | | </td> |
| | | |
| | | <td> |
| | | <%#Eval("DizhiLianxirenDianhua")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("shuliang")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("CarName")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("DriverName")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("wentifankui") %> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Zhuyishixiang") %> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Gongzuokaoping")%> |
| | | </td> |
| | | <td style="text-align: center;"> |
| | | <%#Eval("TransferName")==null || Eval("TransferName").ToString()==""?"未移交":Eval("TransferName")%> |
| | | </td> |
| | | |
| | | |
| | | </tr> |
| | | </itemtemplate> |
| | | </asp:repeater> |
| | | </tbody> |
| | | </table> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | /** |
| | | * OrderDeatil.aspx.cs |
| | | * |
| | | * 功 能: 订单详情 |
| | | * 类 名: OrderDeatil |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-4-24 13:25 吴崎均 初版 |
| | | * V0.02 2013-5-15 18:23 吴崎均 编辑界面样式 |
| | | * V0.03 2013-5-15 15:58 吴崎均 完成数据获取 |
| | | * V0.04 2013-5-21 14:38 吴崎均 增加订单进度 |
| | | * V0.05 2013-5-23 9:33 吴崎均 修改继承类为默认类Page使显示信息不受登录控制 |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL.EC; |
| | | using CY.Infrastructure.Common; |
| | | using CY.Model; |
| | | using CY.BLL; |
| | | using CY.Model.Inquiry; |
| | | using CY.BLL.Sys; |
| | | using CY.Infrastructure.Query; |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | public partial class DeliverPlanLishiPrint : BasePage |
| | | { |
| | | |
| | | OA_DeliverPlanBLL _OA_DeliverPlanBLL = new OA_DeliverPlanBLL(); |
| | | public static string SellerOrderId = ""; |
| | | public static string PrintType = ""; |
| | | /// <summary> |
| | | /// 页面加载事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | switch (Request["Target"]) |
| | | { |
| | | case "GetCommunication": |
| | | break; |
| | | case "print": |
| | | break; |
| | | default: |
| | | Page_Load_Default(); |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | Response.Clear(); |
| | | Response.Write("-1"); |
| | | } |
| | | Response.End(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 默认加载事件方法 |
| | | /// </summary> |
| | | private void Page_Load_Default() |
| | | { |
| | | LoadOrderInfo(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载订单信息 |
| | | /// </summary> |
| | | private bool LoadOrderInfo() |
| | | { |
| | | string DeliverTimestart = Request["DeliverTimestart"]; |
| | | string DeliverTimeend = Request["DeliverTimeend"]; |
| | | |
| | | string CarId = Request["CarId"]; |
| | | string DriverId = Request["DriverId"]; |
| | | |
| | | |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = 1000; |
| | | pa.PageIndex = 1; |
| | | |
| | | IEnumerable<OA_DeliverPlan> oA_DeliverPlans = _OA_DeliverPlanBLL.SelectModelPageLishi(pa, |
| | | CurrentUser.MemberId, |
| | | DeliverTimestart, |
| | | DeliverTimeend, |
| | | CarId, |
| | | DriverId |
| | | ); |
| | | |
| | | |
| | | |
| | | |
| | | rptOrder.DataSource = oA_DeliverPlans; |
| | | rptOrder.DataBind(); |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | |
| | | |
| | | public partial class DeliverPlanLishiPrint |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// hideOrderId 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden hideOrderId; |
| | | |
| | | /// <summary> |
| | | /// rptOrder 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater rptOrder; |
| | | } |
| | | } |
| | |
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | //维护
|
| | | function onViewuplod(keyid) {
|
| | | var l = (screen.availWidth - 500) / 2;
|
| | | var t = (screen.availHeight - 300) / 2;
|
| | | // window.open({ URL: "/Pages/business/CorporateClientsUpLoadContract.aspx?Keyid=" + keyid, Title: "查看合同", Width: 900, Height: 750 });
|
| | | window.open('/Pages/business/DeliverPlanFujianShow.aspx?Keyid=' + keyid, '_blank', 'height=750,width=900,top=' + t + ',left=' + l + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
|
| | | }
|
| | |
|
| | | /*
|
| | | 打印送货单
|
| | | */
|
| | |
| | | var DeliveryTime = $("#txtDeliveryTime").val();
|
| | | var CarId = $("#selCarId").val();
|
| | | var DriverId = $("#selDriverId").val();
|
| | | var CustormerName = $("#txtCustormerName").val();
|
| | | var BusinessManager = $("#selBusinessManager").val();
|
| | | |
| | | // OpenWindowByUrl();
|
| | | OpenWindowByUrl('/Pages/business/DeliverPlanPrint.aspx?DeliverTime=' + DeliveryTime + '&CarId=' + CarId + '&DriverId=' + DriverId, '', '');
|
| | | OpenWindowByUrl('/Pages/business/DeliverPlanPrint.aspx?DeliverTime=' + DeliveryTime + '&CarId=' + CarId + '&DriverId=' + DriverId + '&CustormerName=' + CustormerName + '&BusinessManager=' + BusinessManager, '', '');
|
| | | }
|
| | | </script>
|
| | | <style type="text/css">
|
| | |
| | | </td> <td style="width:5%" >
|
| | |
|
| | | </td>
|
| | | <td style="width:15%">
|
| | | <td style="width:10%">
|
| | |
|
| | | </td> <td style="width:5%" >
|
| | |
|
| | | </td>
|
| | | <td style="width:15%">
|
| | | <td style="width:10%">
|
| | |
|
| | | </td>
|
| | | <td style="width:5%" >
|
| | | |
| | | </td>
|
| | | <td style="width:10%">
|
| | | |
| | | </td>
|
| | | |
| | |
|
| | | </tr>
|
| | | <tr>
|
| | | <td class="ali03">
|
| | |
| | | <select keepdefaultstyle='true' id='selDriverId' runat="server" datatextfield='Name' datavaluefield='Keyid'>
|
| | | </select>
|
| | | </td>
|
| | |
|
| | | <td class="ali03">
|
| | | 客户单位:
|
| | | </td>
|
| | | <td>
|
| | | <input id='txtCustormerName' runat="server" maxlength='50' />
|
| | | </td>
|
| | | |
| | | </tr>
|
| | |
|
| | | <tr>
|
| | |
| | | <select keepdefaultstyle='true' id='selDriverIddo' runat="server" datatextfield='Name' datavaluefield='Keyid'>
|
| | | </select>
|
| | | </td>--%>
|
| | | |
| | | <td class="ali03">
|
| | | 业务经理:
|
| | | </td>
|
| | | <td>
|
| | | <select keepdefaultstyle='true' id='selBusinessManager' runat="server" datatextfield='Name' datavaluefield='Keyid'>
|
| | | </select>
|
| | | </td>
|
| | | <td colspan="9">
|
| | |
|
| | | <asp:button id="btn_Search" text="查询" runat="server" padding="0px" OnClick="btn_Search_Click" /> <input type="button" value='重置' onclick='document.body.innerHTML="";window.location=window.location;' />
|
| | |
| | | 驾驶员
|
| | | </th>
|
| | | <th width="200">
|
| | | 问题反馈
|
| | | </th>
|
| | | <th width="200">
|
| | | 注意事项
|
| | | </th>
|
| | | <th width="200">
|
| | |
| | | </th>
|
| | | <th width="60">
|
| | | 打印送货单
|
| | | </th>
|
| | | <th width="60">
|
| | | 送货单图片
|
| | | </th>
|
| | | </tr>
|
| | | </thead>
|
| | |
| | | <%#Eval("BusinessManager")%>
|
| | | </td>
|
| | | <td>
|
| | | <%#Eval("BuyerName")%>
|
| | | <%#Eval("CompanyName")%>
|
| | | </td>
|
| | |
|
| | | <td>
|
| | |
| | | <%#Eval("DriverName")%>
|
| | | </td>
|
| | | <td>
|
| | | <%#Eval("wentifankui")%>
|
| | | </td>
|
| | | <td>
|
| | | <a href='javascript:void(0)' title='点击修改注意事项' class='a_under' onclick='ViewZhuyishixiang("<%#Eval("Keyid")%>","<%#Eval("BuyerId")%>","<%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%>")'> <%#Eval("Zhuyishixiang").ToString()==""?"修改注意事项":Eval("Zhuyishixiang")%> </a>
|
| | | </td>
|
| | | <td>
|
| | |
| | | <td>
|
| | | <a href='javascript:void(0)' title='打印送货单' class='a_under' onclick='ToPrintDriverorder("<%#Eval("Keyid")%>")'> 打印 </a>
|
| | | </td>
|
| | | <td>
|
| | | <a href='javascript:void(0)' title='送货单图片' class='a_under' onclick='onViewuplod("<%#Eval("Keyid")%>")'> 送货单图片 </a> |
| | | </td>
|
| | | </tr>
|
| | | </itemtemplate>
|
| | | </asp:repeater>
|
| | |
| | | this.selCarId.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | |
| | | this.selBusinessManager.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, true, false); |
| | | this.selBusinessManager.DataTextField = "Name"; |
| | | this.selBusinessManager.DataValueField = "Keyid"; |
| | | this.selBusinessManager.DataBind(); |
| | | this.selBusinessManager.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | |
| | | //this.selDriverIddo.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.BF_IsDriver == true);//.Where(x => x.SM_Post.Equals("驾驶员")); |
| | | //this.selDriverIddo.DataTextField = "Name"; |
| | | //this.selDriverIddo.DataValueField = "Keyid"; |
| | |
| | | CurrentUser.MemberId, |
| | | this.txtDeliveryTime.Value, |
| | | this.selCarId.Value, |
| | | this.selDriverId.Value |
| | | this.selDriverId.Value, |
| | | "", |
| | | this.txtCustormerName.Value.Trim(), |
| | | this.selBusinessManager.Value |
| | | ); |
| | | |
| | | |
| | |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selDriverId; |
| | | |
| | | /// <summary> |
| | | /// txtCustormerName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtCustormerName; |
| | | |
| | | /// <summary> |
| | | /// selBusinessManager 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selBusinessManager; |
| | | |
| | | /// <summary> |
| | | /// btn_Search 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | |
| | | |
| | | string DeliverTime = Request["DeliverTime"].ToString2(); |
| | | |
| | | string CustormerName = Request["CustormerName"].ToString2(); |
| | | |
| | | string BusinessManager = Request["BusinessManager"].ToString2(); |
| | | |
| | | IEnumerable<OA_DeliverPlan> oA_DeliverPlans = _OA_DeliverPlanBLL.SelectModelPage(pa, |
| | | CurrentUser.MemberId, |
| | | DeliverTime, |
| | | CarId, |
| | | DriverId |
| | | DriverId, |
| | | "", |
| | | CustormerName, |
| | | BusinessManager |
| | | ); |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | ssshtml += "<tr><td>"+oA_DeliverPlans1[i].Sort+"</td><td>"+ oA_DeliverPlans1[i].DeliverTime.Value.ToString("yyyy-MM-dd")+"</td><td>"+ oA_DeliverPlans1[i].BusinessManager +"</td><td>"+ oA_DeliverPlans1[i].BuyerName +"</td><td>"+ oA_DeliverPlans1[i].DizhiLianxirenDianhua +"</td><td>"+ oA_DeliverPlans1[i].shuliang +"</td><td>"+ oA_DeliverPlans1[i].CarName+" </td><td>"+ oA_DeliverPlans1[i].DriverName +"</td><td>"+ oA_DeliverPlans1[i].Zhuyishixiang +"</td></tr>"; |
| | | ssshtml += "<tr><td>"+oA_DeliverPlans1[i].Sort+"</td><td>"+ oA_DeliverPlans1[i].DeliverTime.Value.ToString("yyyy-MM-dd")+"</td><td>"+ oA_DeliverPlans1[i].BusinessManager +"</td><td>"+ oA_DeliverPlans1[i].CompanyName + "</td><td>"+ oA_DeliverPlans1[i].DizhiLianxirenDianhua +"</td><td>"+ oA_DeliverPlans1[i].shuliang +"</td><td>"+ oA_DeliverPlans1[i].CarName+" </td><td>"+ oA_DeliverPlans1[i].DriverName +"</td><td>"+ oA_DeliverPlans1[i].Zhuyishixiang +"</td></tr>"; |
| | | |
| | | |
| | | |
| | |
| | | string DeliverTimestart = Request["DeliverTimestart"]; |
| | | string DeliverTimeend = Request["DeliverTimeend"]; |
| | | |
| | | string CarId = Request["CarId"]; |
| | | string DriverId = Request["DriverId"]; |
| | | |
| | | |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = 1000; |
| | | pa.PageIndex = 1; |
| | | |
| | | IEnumerable<OA_DeliverPlan> oA_DeliverPlans = _OA_DeliverPlanBLL.SelectModelPageunusual(pa, |
| | | IEnumerable<OA_DeliverPlan> oA_DeliverPlans = _OA_DeliverPlanBLL.SelectModelPageLishi(pa, |
| | | CurrentUser.MemberId, |
| | | DeliverTimestart, |
| | | DeliverTimeend |
| | | DeliverTimeend, |
| | | CarId, |
| | | DriverId |
| | | ); |
| | | |
| | | |