点击派车 弹出窗口 操作 完成
单据移交要选择 移交人 默认业务经理 , 可以选择 工厂物流部 完成
| | |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 物流状态 |
| | | /// </summary> |
| | | public int? Deliveredstatus |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 移交类型 1 客户经理 2 工厂物流部 |
| | | /// </summary> |
| | | public int? TransferType |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 移交类型名称 |
| | | /// </summary> |
| | | public string TransferName |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 移交时间 |
| | | /// </summary> |
| | |
| | | this.CompanyName = isChange ? MyConvert.ConvertToString(value) : CompanyName; |
| | | theValue = this.CompanyName; |
| | | } |
| | | |
| | | else if ("Deliveredstatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 59) |
| | | { |
| | | this.Deliveredstatus = isChange ? MyConvert.ConvertToInt32(value) : Deliveredstatus; |
| | | theValue = this.Deliveredstatus; |
| | | } |
| | | |
| | | else if ("TransferType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 60) |
| | | { |
| | | this.TransferType = isChange ? MyConvert.ConvertToInt32(value) : TransferType; |
| | | theValue = this.TransferType; |
| | | } |
| | | |
| | | else if ("TransferName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 61) |
| | | { |
| | | this.TransferName = isChange ? MyConvert.ConvertToString(value) : TransferName; |
| | | theValue = this.TransferName; |
| | | } |
| | | |
| | | |
| | | |
| | | return theValue; |
| | |
| | | new SqlParameter("@Biddingcompany",trueModel.Biddingcompany), |
| | | new SqlParameter("@shifouDelivery",trueModel.shifouDelivery), |
| | | new SqlParameter("@Lianxiren",trueModel.Lianxiren), |
| | | new SqlParameter("@CompanyName",trueModel.CompanyName), |
| | | new SqlParameter("@CompanyName",string.IsNullOrEmpty(trueModel.CompanyName)?"":trueModel.CompanyName), |
| | | new SqlParameter("@Deliveredstatus",trueModel.Deliveredstatus.HasValue?trueModel.Deliveredstatus.Value:0), |
| | | new SqlParameter("@TransferType",trueModel.TransferType.HasValue?trueModel.TransferType.Value:0), |
| | | new SqlParameter("@TransferName",string.IsNullOrEmpty(trueModel.TransferName)?"":trueModel.TransferName), |
| | | }; |
| | | try |
| | | { |
| | |
| | | TransfersTime, |
| | | new SqlParameter("@Creater",trueModel.Creater), |
| | | new SqlParameter("@CreateTime",trueModel.CreateTime), |
| | | new SqlParameter("@Updater",trueModel.Updater), |
| | | new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime), |
| | | new SqlParameter("@Updater",trueModel.Updater.HasValue?trueModel.Updater.Value:Guid.Empty), |
| | | 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("@Biddingcompany",trueModel.Biddingcompany), |
| | | new SqlParameter("@shifouDelivery",trueModel.shifouDelivery), |
| | | new SqlParameter("@Lianxiren",trueModel.Lianxiren), |
| | | new SqlParameter("@CompanyName",trueModel.CompanyName), |
| | | new SqlParameter("@CompanyName",string.IsNullOrEmpty(trueModel.CompanyName)?"":trueModel.CompanyName), |
| | | new SqlParameter("@Deliveredstatus",trueModel.Deliveredstatus.HasValue?trueModel.Deliveredstatus.Value:0), |
| | | new SqlParameter("@TransferType",trueModel.TransferType.HasValue?trueModel.TransferType.Value:0), |
| | | new SqlParameter("@TransferName",string.IsNullOrEmpty(trueModel.TransferName)?"":trueModel.TransferName), |
| | | }; |
| | | try |
| | | { |
| | |
| | | <Content Include="Pages\business\Caigoufukuanshenqing.aspx" /> |
| | | <Content Include="Pages\business\Baozhengjinfukuan.aspx" /> |
| | | <Content Include="Pages\business\BaozhengjinCuishou.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanYijiao.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanPaiche.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanShifou.aspx" /> |
| | | <Content Include="Pages\business\OrderUpLoadLiuyang.aspx" /> |
| | | <Content Include="Pages\business\WaixieOrderPrint.aspx" /> |
| | |
| | | <Compile Include="Pages\business\BaozhengjinCuishou.aspx.designer.cs"> |
| | | <DependentUpon>BaozhengjinCuishou.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanYijiao.aspx.cs"> |
| | | <DependentUpon>DeliverPlanYijiao.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanYijiao.aspx.designer.cs"> |
| | | <DependentUpon>DeliverPlanYijiao.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanPaiche.aspx.cs"> |
| | | <DependentUpon>DeliverPlanPaiche.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanPaiche.aspx.designer.cs"> |
| | | <DependentUpon>DeliverPlanPaiche.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\DeliverPlanShifou.aspx.cs"> |
| | | <DependentUpon>DeliverPlanShifou.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | this.spnBuyerName.InnerText = oA_DeliverPlan.CompanyName; |
| | | |
| | | this.spnBuyerAddress.InnerText = oA_DeliverPlan.Dizhi; |
| | | this.spnNowTime.InnerText = oA_DeliverPlan.DeliverTime.Value.ToString("yyyy-Mm-dd"); |
| | | this.spnNowTime.InnerText = oA_DeliverPlan.DeliverTime.Value.ToString("yyyy-MM-dd"); |
| | | this.SellerOrderId.InnerText = oA_DeliverPlan.SellerOrderId; |
| | | this.spnBuyerPhone.InnerText = oA_DeliverPlan.Dianhua; |
| | | |
| | |
| | | }
|
| | |
|
| | |
|
| | | ///批量受理
|
| | | 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 });
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | ///批量受理
|
| | |
| | |
|
| | | <tr>
|
| | |
|
| | | <td class="ali03">
|
| | | <%-- <td class="ali03">
|
| | | 新增送货车辆:
|
| | | </td>
|
| | | <td >
|
| | |
| | | <td >
|
| | | <select keepdefaultstyle='true' id='selDriverIddo' runat="server" datatextfield='Name' datavaluefield='Keyid'>
|
| | | </select>
|
| | | </td>
|
| | | </td>--%>
|
| | |
|
| | | <td colspan="5">
|
| | | <input type="button" value='派车' onclick='ToAllAccept2();' />
|
| | | <input type="button" value='新增送货' onclick='ToAddorder();' />
|
| | | <input type="button" value='单据移交' onclick='ToAllAccept1();' /> |
| | | <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;' />
|
| | | <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;' />
|
| | |
|
| | | <input type="button" value='新增送货' onclick='ToAddorder();' />
|
| | | <input type="button" value='派车' onclick='ToAllAccept3();' />
|
| | | <input type="button" value='单据移交' onclick='ToAllAccept4();' /> |
| | | <input type="button" value='打印全部' onclick='ToPrintdelev();' />
|
| | | |
| | | </td>
|
| | | </tr>
|
| | |
|
| | |
| | | <a href='javascript:void(0)' title='点击修改工作考评' class='a_under' onclick='ViewGongzuokaoping("<%#Eval("Keyid")%>","<%#Eval("BuyerId")%>","<%#Eval("DeliverTime", "{0:yyyy-MM-dd}")%>")' ><%#Eval("Gongzuokaoping").ToString()==""?"修改工作考评":Eval("Gongzuokaoping")%> </a>
|
| | | </td>
|
| | | <td style="text-align: center;">
|
| | | <%#(Eval("TransferstatusName").ToString()==""||Eval("TransferstatusName").ToString()=="未移交")?"未移交":"√"%>
|
| | | <%#Eval("TransferName")==null || Eval("TransferName").ToString()==""?"未移交":Eval("TransferName")%>
|
| | | </td>
|
| | | <td>
|
| | | <a href='javascript:void(0)' title='打印送货单' class='a_under' onclick='ToPrintDriverorder("<%#Eval("Keyid")%>")'> 打印 </a>
|
| | |
| | | this.selCarId.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"; |
| | | this.selDriverIddo.DataBind(); |
| | | this.selDriverIddo.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"; |
| | | //this.selDriverIddo.DataBind(); |
| | | //this.selDriverIddo.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | this.selCarIddo.DataSource = _OA_CarManageBll.SelectListByFirmId(CurrentUser.MemberId); |
| | | this.selCarIddo.DataTextField = "CarNumber"; |
| | | this.selCarIddo.DataValueField = "Keyid"; |
| | | this.selCarIddo.DataBind(); |
| | | this.selCarIddo.Items.Insert(0, new ListItem("全部", "")); |
| | | //this.selCarIddo.DataSource = _OA_CarManageBll.SelectListByFirmId(CurrentUser.MemberId); |
| | | //this.selCarIddo.DataTextField = "CarNumber"; |
| | | //this.selCarIddo.DataValueField = "Keyid"; |
| | | //this.selCarIddo.DataBind(); |
| | | //this.selCarIddo.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | this.Button0.Text = "逾期"; |
| | | this.Button1.Text = DateTime.Now.ToString("yyyy-MM-dd"); |
| | |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selDriverId; |
| | | |
| | | /// <summary> |
| | | /// selCarIddo 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selCarIddo; |
| | | |
| | | /// <summary> |
| | | /// selDriverIddo 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selDriverIddo; |
| | | |
| | | /// <summary> |
| | | /// btn_Search 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanPaiche.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanPaiche" %> |
| | | |
| | | <!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" /> |
| | | <!--前台页面start--> |
| | | <link rel="stylesheet" type="text/css" href="../../Styles/base.css" /> |
| | | <link href="../../Styles/changes.css" rel="stylesheet" type="text/css" /> |
| | | <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" /> |
| | | <!--前台页面end--> |
| | | <script type="text/javascript" language="javascript"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | |
| | | </head> |
| | | <body style='padding: 0; margin: 0;'> |
| | | <form id="form1" runat="server" style='padding: 0; margin: 0;' class='form2'> |
| | | |
| | | |
| | | <table class="table2" id="tbBasic"> |
| | | <thead> |
| | | <tr> |
| | | <th colspan="8"> |
| | | 基本信息 |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | <tr style=" height:1px;"> |
| | | <td style="border:none;width: 100px;"> |
| | | </td> |
| | | <td style="border:none; width:300px;"> |
| | | </td> |
| | | <td style="border:none;width: 100px;"> |
| | | </td> |
| | | <td style="border:none;"> |
| | | </td> |
| | | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td align="right"> |
| | | 驾驶员: |
| | | </td> |
| | | <td align="left"> |
| | | |
| | | <select keepdefaultstyle='true' id='selDriverId' runat="server" datatextfield='Name' datavaluefield='Keyid' class="Sreq"> |
| | | </select> |
| | | |
| | | </td> |
| | | <td align="right"> |
| | | |
| | | </td> |
| | | <td align="left"> |
| | | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="contentLeft" colspan="4" style=" padding-left:300px;"> |
| | | <asp:Button ID="btnSaves" runat="server" Text="提交" OnClick="btnSave_ServerClick" /> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | |
| | | |
| | | |
| | | </form> |
| | | |
| | | </body> |
| | | <script type="text/javascript" language="javascript"> |
| | | |
| | | |
| | | |
| | | </script> |
| | | </html> |
New file |
| | |
| | | /** |
| | | * OrderEdit.aspx.cs |
| | | * |
| | | * 功 能: 订单列表 |
| | | * 类 名: OrderEdit |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-5-8 13:55 吴崎均 初版 |
| | | * V0.02 2013-5-8 15:47 吴崎均 实现下拉数据绑定与数据级联 |
| | | * V0.03 2013-5-8 18:00 吴崎均 初步完成新增线下订单(未调试) |
| | | * |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL.Sys; |
| | | using CY.BLL; |
| | | using CY.Model; |
| | | using CY.Infrastructure.Common; |
| | | using CY.WebForm.Pages.common; |
| | | using CY.BLL.EC; |
| | | using CY.Model.Inquiry; |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | public partial class DeliverPlanPaiche : BasePage |
| | | { |
| | | |
| | | OA_DeliverPlanBLL _OA_DeliverPlanBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | OA_CarManageBll _OA_CarManageBll = null; |
| | | |
| | | |
| | | //初始化 |
| | | public DeliverPlanPaiche() |
| | | { |
| | | |
| | | _OA_DeliverPlanBLL = new OA_DeliverPlanBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | _OA_CarManageBll = new OA_CarManageBll(); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 页面加载事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | switch (Request["Target"]) |
| | | { |
| | | case "GetCommunication": |
| | | LoadCommunication(); |
| | | break; |
| | | case "ReBindClients": |
| | | Response.Write(ReLoadClients()); |
| | | break; |
| | | |
| | | default: |
| | | Page_Load_Default(); |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | Response.Clear(); |
| | | //Response.Write("-1"); |
| | | Response.Write(ex.Message); |
| | | } |
| | | Response.End(); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 默认执行方法 |
| | | /// </summary> |
| | | private void Page_Load_Default() |
| | | { |
| | | |
| | | |
| | | |
| | | if (!IsPostBack && !IsCallback) |
| | | { |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | 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("请选择", "")); |
| | | |
| | | |
| | | string keyid = Request["keyid"]; |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存点击事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | protected void btnSave_ServerClick(object sender, EventArgs e) |
| | | { |
| | | |
| | | if (SaveOrder()) |
| | | { |
| | | //操作成功 |
| | | JavaScript.MessageBox("操作成功", this, true,true); |
| | | } |
| | | else |
| | | { |
| | | //操作失败 |
| | | JavaScript.MessageBox("操作失败", this); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 加载客户联系方式 |
| | | /// </summary> |
| | | private void LoadCommunication() |
| | | { |
| | | Response.Clear(); |
| | | string id = Request["id"]; |
| | | if (string.IsNullOrEmpty(id)) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | |
| | | OA_CorporateClientsBLL _oA_CorporateClientsBLL = new OA_CorporateClientsBLL(); |
| | | OA_CorporateClients m_OA_CorporateClients = _oA_CorporateClientsBLL.SelectModelByFirmIdandMemberId(CurrentUser.MemberId, id.ToGuid2()); |
| | | OA_CustomerCommunications _oA_CustomerCommunications = _oA_CorporateClientsBLL.GetModel_CustomerCommunications(m_OA_CorporateClients.Keyid); |
| | | _oA_CustomerCommunications.DegreeImportanId = m_OA_CorporateClients.DegreeImportanId; |
| | | _oA_CustomerCommunications.AccountManagerId = m_OA_CorporateClients.AccountManagerId; |
| | | _oA_CustomerCommunications.BusinessManagerId = m_OA_CorporateClients.BusinessManagerId; |
| | | _oA_CustomerCommunications.CompanyName = m_OA_CorporateClients.CompanyName; |
| | | Response.Write(null == _oA_CustomerCommunications ? "" : JsonHelper.GetJsonStringByObject(_oA_CustomerCommunications)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 保存订单 |
| | | /// </summary> |
| | | private bool SaveOrder() |
| | | { |
| | | |
| | | |
| | | bool isWin = false; |
| | | try |
| | | { |
| | | |
| | | var ids = Request["ids"].ToString().Trim(',').Split(','); |
| | | |
| | | |
| | | |
| | | foreach (var keyid in ids) |
| | | { |
| | | var deliverPlan = _OA_DeliverPlanBLL.GetModelByKeyid(keyid.ToGuid2(), null, null); |
| | | |
| | | deliverPlan.DriverId = this.selDriverId.Value.ToInt32(); |
| | | |
| | | var carManage = _OA_CarManageBll.SelectListByFirmId(CurrentUser.MemberId).Where(x => x.StaffID == deliverPlan.DriverId).FirstOrDefault(); |
| | | if (carManage != null) |
| | | { |
| | | deliverPlan.CarId = carManage.Keyid ?? 0; |
| | | } |
| | | else |
| | | { |
| | | deliverPlan.CarId = 0; |
| | | } |
| | | isWin = _OA_DeliverPlanBLL.UpdateModel(deliverPlan); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | isWin = false; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return isWin; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 重新加载客户列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private string ReLoadClients() |
| | | { |
| | | try |
| | | { |
| | | string res = "<option value=''>请选择</option>"; |
| | | OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); |
| | | IList<OA_CorporateClients> m_OA_CorporateClientsList = bll_OA_CorporateClientsBLL.SelectListByFirmId(CurrentUser.MemberId) as IList<OA_CorporateClients>; |
| | | if (null != m_OA_CorporateClientsList) |
| | | { |
| | | m_OA_CorporateClientsList.Where(cc => CurrentUser.MemberId.Equals(cc.MemberId) && m_OA_CorporateClientsList.Remove(cc)); |
| | | if (m_OA_CorporateClientsList.Count > 0) |
| | | { |
| | | foreach (var m_OA_CorporateClients in m_OA_CorporateClientsList) |
| | | { |
| | | res = res + ("<option value='" + m_OA_CorporateClients.MemberId + "'>" + m_OA_CorporateClients.CompanyName + "</option>"); |
| | | } |
| | | } |
| | | } |
| | | return res; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | return ""; |
| | | } |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | |
| | | |
| | | public partial class DeliverPlanPaiche |
| | | { |
| | | |
| | | /// <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> |
| | | /// selDriverId 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selDriverId; |
| | | |
| | | /// <summary> |
| | | /// btnSaves 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btnSaves; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliverPlanYijiao.aspx.cs" Inherits="CY.WebForm.Pages.business.DeliverPlanYijiao" %> |
| | | |
| | | <!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" /> |
| | | <!--前台页面start--> |
| | | <link rel="stylesheet" type="text/css" href="../../Styles/base.css" /> |
| | | <link href="../../Styles/changes.css" rel="stylesheet" type="text/css" /> |
| | | <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" /> |
| | | <!--前台页面end--> |
| | | <script type="text/javascript" language="javascript"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | |
| | | </head> |
| | | <body style='padding: 0; margin: 0;'> |
| | | <form id="form1" runat="server" style='padding: 0; margin: 0;' class='form2'> |
| | | |
| | | |
| | | <table class="table2" id="tbBasic"> |
| | | <thead> |
| | | <tr> |
| | | <th colspan="8"> |
| | | 基本信息 |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | |
| | | |
| | | <tr> |
| | | <td class="ali03"> |
| | | 驾驶员: |
| | | </td> |
| | | <td > |
| | | |
| | | <asp:RadioButtonList runat="server" ID="IsBusinessManager" RepeatDirection="Horizontal" CellPadding="0" CellSpacing="0" CssClass="w240px NoBorder"> |
| | | <%-- <asp:ListItem Text="业务经理" Value="1" /> |
| | | <asp:ListItem Text="工厂物流部" Value="2" />--%> |
| | | </asp:RadioButtonList> |
| | | </td> |
| | | <td align="right"> |
| | | |
| | | </td> |
| | | <td align="left"> |
| | | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="contentLeft" colspan="4" style=" padding-left:300px;"> |
| | | <asp:Button ID="btnSaves" runat="server" Text="提交" OnClick="btnSave_ServerClick" /> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | |
| | | |
| | | |
| | | </form> |
| | | |
| | | </body> |
| | | <script type="text/javascript" language="javascript"> |
| | | |
| | | |
| | | |
| | | </script> |
| | | </html> |
New file |
| | |
| | | /** |
| | | * OrderEdit.aspx.cs |
| | | * |
| | | * 功 能: 订单列表 |
| | | * 类 名: OrderEdit |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-5-8 13:55 吴崎均 初版 |
| | | * V0.02 2013-5-8 15:47 吴崎均 实现下拉数据绑定与数据级联 |
| | | * V0.03 2013-5-8 18:00 吴崎均 初步完成新增线下订单(未调试) |
| | | * |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL.Sys; |
| | | using CY.BLL; |
| | | using CY.Model; |
| | | using CY.Infrastructure.Common; |
| | | using CY.WebForm.Pages.common; |
| | | using CY.BLL.EC; |
| | | using CY.Model.Inquiry; |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | public partial class DeliverPlanYijiao : BasePage |
| | | { |
| | | |
| | | OA_DeliverPlanBLL _OA_DeliverPlanBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | OA_CarManageBll _OA_CarManageBll = null; |
| | | |
| | | |
| | | //初始化 |
| | | public DeliverPlanYijiao() |
| | | { |
| | | |
| | | _OA_DeliverPlanBLL = new OA_DeliverPlanBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | _OA_CarManageBll = new OA_CarManageBll(); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 页面加载事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | switch (Request["Target"]) |
| | | { |
| | | case "GetCommunication": |
| | | LoadCommunication(); |
| | | break; |
| | | case "ReBindClients": |
| | | Response.Write(ReLoadClients()); |
| | | break; |
| | | |
| | | default: |
| | | Page_Load_Default(); |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | Response.Clear(); |
| | | //Response.Write("-1"); |
| | | Response.Write(ex.Message); |
| | | } |
| | | Response.End(); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 默认执行方法 |
| | | /// </summary> |
| | | private void Page_Load_Default() |
| | | { |
| | | |
| | | |
| | | |
| | | if (!IsPostBack && !IsCallback) |
| | | { |
| | | |
| | | |
| | | this.IsBusinessManager.Items.Add(new ListItem("业务经理", "1")); |
| | | this.IsBusinessManager.Items.Add(new ListItem("工厂物流部", "2")); |
| | | |
| | | this.IsBusinessManager.SelectedValue = "1"; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | string keyid = Request["keyid"]; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存点击事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | protected void btnSave_ServerClick(object sender, EventArgs e) |
| | | { |
| | | |
| | | if (SaveOrder()) |
| | | { |
| | | //操作成功 |
| | | JavaScript.MessageBox("操作成功", this, true,true); |
| | | } |
| | | else |
| | | { |
| | | //操作失败 |
| | | JavaScript.MessageBox("操作失败", this); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 加载客户联系方式 |
| | | /// </summary> |
| | | private void LoadCommunication() |
| | | { |
| | | Response.Clear(); |
| | | string id = Request["id"]; |
| | | if (string.IsNullOrEmpty(id)) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | |
| | | OA_CorporateClientsBLL _oA_CorporateClientsBLL = new OA_CorporateClientsBLL(); |
| | | OA_CorporateClients m_OA_CorporateClients = _oA_CorporateClientsBLL.SelectModelByFirmIdandMemberId(CurrentUser.MemberId, id.ToGuid2()); |
| | | OA_CustomerCommunications _oA_CustomerCommunications = _oA_CorporateClientsBLL.GetModel_CustomerCommunications(m_OA_CorporateClients.Keyid); |
| | | _oA_CustomerCommunications.DegreeImportanId = m_OA_CorporateClients.DegreeImportanId; |
| | | _oA_CustomerCommunications.AccountManagerId = m_OA_CorporateClients.AccountManagerId; |
| | | _oA_CustomerCommunications.BusinessManagerId = m_OA_CorporateClients.BusinessManagerId; |
| | | _oA_CustomerCommunications.CompanyName = m_OA_CorporateClients.CompanyName; |
| | | Response.Write(null == _oA_CustomerCommunications ? "" : JsonHelper.GetJsonStringByObject(_oA_CustomerCommunications)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 保存订单 |
| | | /// </summary> |
| | | private bool SaveOrder() |
| | | { |
| | | |
| | | |
| | | bool isWin = false; |
| | | try |
| | | { |
| | | |
| | | var ids = Request["ids"].ToString().Trim(',').Split(','); |
| | | |
| | | |
| | | |
| | | foreach (var keyid in ids) |
| | | { |
| | | var deliverPlan = _OA_DeliverPlanBLL.GetModelByKeyid(keyid.ToGuid2(), null, null); |
| | | |
| | | deliverPlan.TransferType = this.IsBusinessManager.SelectedValue.ToInt32(); |
| | | if(this.IsBusinessManager.SelectedValue == "2") |
| | | { |
| | | deliverPlan.TransferName = "工厂物流部"; |
| | | } |
| | | else |
| | | { |
| | | if(deliverPlan.BusinessManagerId.HasValue && deliverPlan.BusinessManagerId.Value > 0) |
| | | { |
| | | var oA_Staff = bll_OA_StaffBLL.GetModelByKeyid(deliverPlan.BusinessManagerId.Value); |
| | | if (oA_Staff != null) |
| | | { |
| | | deliverPlan.TransferName = oA_Staff.Name; |
| | | } |
| | | else |
| | | { |
| | | deliverPlan.TransferName = "业务经理"; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | deliverPlan.TransferName = "业务经理"; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | var carManage = _OA_CarManageBll.SelectListByFirmId(CurrentUser.MemberId).Where(x => x.StaffID == deliverPlan.DriverId).FirstOrDefault(); |
| | | if (carManage != null) |
| | | { |
| | | deliverPlan.CarId = carManage.Keyid ?? 0; |
| | | } |
| | | isWin = _OA_DeliverPlanBLL.UpdateModel(deliverPlan); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | isWin = false; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return isWin; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 重新加载客户列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private string ReLoadClients() |
| | | { |
| | | try |
| | | { |
| | | string res = "<option value=''>请选择</option>"; |
| | | OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); |
| | | IList<OA_CorporateClients> m_OA_CorporateClientsList = bll_OA_CorporateClientsBLL.SelectListByFirmId(CurrentUser.MemberId) as IList<OA_CorporateClients>; |
| | | if (null != m_OA_CorporateClientsList) |
| | | { |
| | | m_OA_CorporateClientsList.Where(cc => CurrentUser.MemberId.Equals(cc.MemberId) && m_OA_CorporateClientsList.Remove(cc)); |
| | | if (m_OA_CorporateClientsList.Count > 0) |
| | | { |
| | | foreach (var m_OA_CorporateClients in m_OA_CorporateClientsList) |
| | | { |
| | | res = res + ("<option value='" + m_OA_CorporateClients.MemberId + "'>" + m_OA_CorporateClients.CompanyName + "</option>"); |
| | | } |
| | | } |
| | | } |
| | | return res; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | return ""; |
| | | } |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | |
| | | |
| | | public partial class DeliverPlanYijiao |
| | | { |
| | | |
| | | /// <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> |
| | | /// IsBusinessManager 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.RadioButtonList IsBusinessManager; |
| | | |
| | | /// <summary> |
| | | /// btnSaves 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btnSaves; |
| | | } |
| | | } |
| | |
| | | oA_DeliverPlan.shifouDelivery = shifouDelivery; |
| | | _OA_DeliverPlanBLL.InsertModel(oA_DeliverPlan); |
| | | this.spnBuyerAddress.InnerText = oA_DeliverPlan.Dizhi; |
| | | this.spnNowTime.InnerText = oA_DeliverPlan.DeliverTime.Value.ToString("yyyy-Mm-dd"); |
| | | this.spnNowTime.InnerText = oA_DeliverPlan.DeliverTime.Value.ToString("yyyy-MM-dd"); |
| | | this.SellerOrderId.InnerText = oA_DeliverPlan.SellerOrderId; |
| | | this.spnBuyerPhone.InnerText = oA_DeliverPlan.Dianhua; |
| | | string[] orderids = Request["ids"].Split(','); |
| | |
| | | |
| | | OA_DeliverPlan oA_DeliverPlan = _OA_DeliverPlanBLL.GetModelByKeyid(eC_OrderBasic.DeliveryOrderId,null,null); |
| | | this.spnBuyerAddress.InnerText = oA_DeliverPlan.Dizhi; |
| | | this.spnNowTime.InnerText = oA_DeliverPlan.DeliverTime.Value.ToString("yyyy-Mm-dd"); |
| | | this.spnNowTime.InnerText = oA_DeliverPlan.DeliverTime.Value.ToString("yyyy-MM-dd"); |
| | | this.SellerOrderId.InnerText = oA_DeliverPlan.SellerOrderId; |
| | | this.spnBuyerPhone.InnerText = oA_DeliverPlan.Dianhua; |
| | | this.SellerOrderId.InnerText = oA_DeliverPlan.SellerOrderId; |