| | |
| | | OBJECT_PATH.Add(DALInterface.IOA_KipiaoshenqingDAL, "OA_KipiaoshenqingDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_KaipiaonewcuishouDAL, "OA_KaipiaonewcuishouDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_KaipiaonewhuikuanDAL, "OA_KaipiaonewhuikuanDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_KaipiaoJineQuerenDAL, "OA_KaipiaoJineQuerenDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_KaipiaonewDAL, "OA_KaipiaonewDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderDAL, "CoreCmsPlanOrderDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderItemDAL, "CoreCmsPlanOrderItemDAL"); |
| | |
| | | /// <summary> |
| | | /// 开票申请 |
| | | /// </summary> |
| | | IOA_KaipiaoJineQuerenDAL = 1934, |
| | | /// <summary> |
| | | /// 开票申请 |
| | | /// </summary> |
| | | IOA_KaipiaonewDAL = 1932, |
| | | |
| | | /// <summary> |
| | |
| | | <Compile Include="OA\OA_DepartmentBLL.cs" /> |
| | | <Compile Include="OA\OA_DocumentBLL.cs" /> |
| | | <Compile Include="OA\OA_DocumentDicBLL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaoJineQuerenBLL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewBLL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewcuishouBLL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewhuikuanBLL.cs" /> |
| | |
| | | return _eC_OrderBasicDAL.ReceiveMoneyToAccount(orderId, firmAccountRecord); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 收款(线下转账、现金) |
| | | /// </summary> |
| | | /// <param name="orderId">订单编号</param> |
| | | /// <param name="firmAccountRecord">操作记录</param> |
| | | /// <returns></returns> |
| | | public bool ReceiveMoneyToQueren(int orderId, OA_FirmAccountRecord firmAccountRecord) |
| | | { |
| | | return _eC_OrderBasicDAL.ReceiveMoneyToQueren(orderId, firmAccountRecord); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 送货 |
| | | /// </summary> |
New file |
| | |
| | | |
| | | /** |
| | | * OA_KaipiaoJineQuerenBLL.cs |
| | | * |
| | | * 功 能: 合作客户业务逻辑类 |
| | | * 类 名: OA_KaipiaoJineQuerenBLL |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-4-2 15:11 吴辉 初版 |
| | | * V0.02 2013-5-29 17:43 吴崎均 增加转换在线会员为厂商客户方法 |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using CY.IDAL; |
| | | using CY.Model; |
| | | using AbstractFactory; |
| | | using CY.IBaseDAL; |
| | | using CY.Infrastructure.DESEncrypt; |
| | | using CY.Infrastructure.Query; |
| | | |
| | | namespace CY.BLL |
| | | { |
| | | public class OA_KaipiaoJineQuerenBLL |
| | | |
| | | { |
| | | IOA_KaipiaoJineQuerenDAL _IOA_KaipiaoJineQuerenDAL = null; |
| | | |
| | | /// <summary> |
| | | /// 初始化构造 |
| | | /// </summary> |
| | | public OA_KaipiaoJineQuerenBLL() |
| | | { |
| | | //获取OA_KaipiaoJineQueren DAL实现 |
| | | _IOA_KaipiaoJineQuerenDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_KaipiaoJineQuerenDAL) as IOA_KaipiaoJineQuerenDAL; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 新增送货安排 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <param name="m_OA_CustomerCommunications"></param> |
| | | /// <param name="m_EC_AcceptWayByCustomers"></param> |
| | | /// <returns></returns> |
| | | public bool InsertModel(CY.Model.OA_KaipiaoJineQueren m_OA_KaipiaoJineQueren) |
| | | { |
| | | try |
| | | { |
| | | |
| | | return _IOA_KaipiaoJineQuerenDAL.InserModel(m_OA_KaipiaoJineQueren); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 新增送货安排 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <param name="m_OA_CustomerCommunications"></param> |
| | | /// <param name="m_EC_AcceptWayByCustomers"></param> |
| | | /// <returns></returns> |
| | | public bool InserModeldetail(CY.Model.OA_KaipiaoJineQuerendetail m_OA_KaipiaoJineQuerendetail) |
| | | { |
| | | try |
| | | { |
| | | |
| | | return _IOA_KaipiaoJineQuerenDAL.InserModeldetail(m_OA_KaipiaoJineQuerendetail); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改送货安排 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(CY.Model.OA_KaipiaoJineQueren m_OA_KaipiaoJineQueren) |
| | | { |
| | | try |
| | | { |
| | | return _IOA_KaipiaoJineQuerenDAL.UpdateModel(m_OA_KaipiaoJineQueren); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取全部合作客户 |
| | | /// </summary> |
| | | /// <param name="Keyid">主键id</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<OA_KaipiaoJineQueren> GetModelList() |
| | | { |
| | | Query query = new Query(); |
| | | return _IOA_KaipiaoJineQuerenDAL.SelectAllModel(query); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据buyeridid获得信息 |
| | | /// </summary> |
| | | /// <param name="buyerid">编号</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_KaipiaoJineQueren> GetModelBybuyerid(Guid buyerid) |
| | | { |
| | | |
| | | return _IOA_KaipiaoJineQuerenDAL.GetModelBybuyerid(buyerid); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取全部合作客户 |
| | | /// </summary> |
| | | /// <param name="Keyid">主键id</param> |
| | | /// <returns></returns> |
| | | public OA_KaipiaoJineQueren GetModelByKeyid(Guid? keyid) |
| | | { |
| | | |
| | | return _IOA_KaipiaoJineQuerenDAL.GetModelByKeyid(keyid); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除合作客户 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(CY.Model.OA_KaipiaoJineQueren rType) |
| | | { |
| | | try |
| | | { |
| | | _IOA_KaipiaoJineQuerenDAL.DeleteModel(rType); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询合作客户分页列表 |
| | | /// </summary> |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<OA_KaipiaoJineQueren> SelectModelPage(Pagination pa, Guid FirmId, string CreateTimeStart, string CreateTimeEnd, |
| | | string BusinessManagerId, string CustormerName, string Querenstatus) |
| | | { |
| | | string Condition = " and ok.FirmId ='" + FirmId + "' "; |
| | | |
| | | if (!string.IsNullOrEmpty(CreateTimeStart)) |
| | | Condition += " and DATEDIFF(day,ok.[CreateTime],'" + CreateTimeStart + "')<=0 "; |
| | | |
| | | if (!string.IsNullOrEmpty(CreateTimeEnd)) |
| | | Condition += " and DATEDIFF(day,ok.[CreateTime],'" + CreateTimeEnd + "')>=0 "; |
| | | |
| | | if (!string.IsNullOrEmpty(BusinessManagerId)) |
| | | Condition += " and ok.BusinessManagerId = '" + BusinessManagerId + "'"; |
| | | if (!string.IsNullOrEmpty(CustormerName)) |
| | | Condition += " and oe.CompanyName like '%" + CustormerName + "%'"; |
| | | if (!string.IsNullOrEmpty(Querenstatus)) |
| | | Condition += " and ok.Querenstatus = " + Querenstatus + ""; |
| | | |
| | | |
| | | Query query = new Query(); |
| | | IList<Criterion> criterias = new List<Criterion>() |
| | | { |
| | | new Criterion("", Condition), |
| | | |
| | | new Criterion("orderBy"," CreateTime desc ") |
| | | }; |
| | | query.Criteria = criterias; |
| | | return _IOA_KaipiaoJineQuerenDAL.SelectModelPage(query, pa); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | <Compile Include="OA\IOA_CarrepairDAL.cs" /> |
| | | <Compile Include="OA\IOA_CuikuanjiluDAL.cs" /> |
| | | <Compile Include="OA\IOA_DeliverPlanDAL.cs" /> |
| | | <Compile Include="OA\IOA_KaipiaoJineQuerenDAL.cs" /> |
| | | <Compile Include="OA\IOA_KaipiaonewcuishouDAL.cs" /> |
| | | <Compile Include="OA\IOA_KaipiaonewDAL.cs" /> |
| | | <Compile Include="OA\IOA_KipiaoshenqingDAL.cs" /> |
| | |
| | | /// <returns></returns> |
| | | bool ReceiveMoneyToAccount(int orderId, OA_FirmAccountRecord firmAccountRecord); |
| | | |
| | | |
| | | /// <summary> |
| | | /// 收款(线下转账、现金) |
| | | /// </summary> |
| | | /// <param name="orderId">订单编号</param> |
| | | /// <param name="firmAccountRecord">操作记录</param> |
| | | /// <returns></returns> |
| | | bool ReceiveMoneyToQueren(int orderId, OA_FirmAccountRecord firmAccountRecord); |
| | | |
| | | |
| | | /// <summary> |
| | | /// 收款(外协预付款、客户预付款) |
| | | /// </summary> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using CY.IBaseDAL; |
| | | using CY.Model; |
| | | |
| | | |
| | | namespace CY.IDAL |
| | | { |
| | | public interface IOA_KaipiaoJineQuerenDAL : ICommonDAL, IPaging<OA_KaipiaoJineQueren>, IGetAllModel<OA_KaipiaoJineQueren> |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 根据编号获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | OA_KaipiaoJineQueren GetModelByKeyid(Guid? keyid); |
| | | |
| | | /// <summary> |
| | | /// 根据buyerid获得信息 |
| | | /// </summary> |
| | | /// <param name="buyerid">买家id</param> |
| | | /// <returns></returns> |
| | | IEnumerable<OA_KaipiaoJineQueren> GetModelBybuyerid(Guid buyerid); |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 新增 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | bool InserModeldetail(OA_KaipiaoJineQuerendetail model); |
| | | } |
| | | } |
| | |
| | | <Compile Include="OA\OA_IntentionCustomer.cs" /> |
| | | <Compile Include="OA\OA_IntentionCustomerExtend.cs" /> |
| | | <Compile Include="OA\OA_Inventory.cs" /> |
| | | <Compile Include="OA\OA_KaipiaoJineQueren.cs" /> |
| | | <Compile Include="OA\OA_KaipiaoJineQuerendetail.cs" /> |
| | | <Compile Include="OA\OA_Kaipiaonew.cs" /> |
| | | <Compile Include="OA\OA_Kaipiaonewcuishou.cs" /> |
| | | <Compile Include="OA\OA_Kaipiaonewhuikuan.cs" /> |
New file |
| | |
| | | /** |
| | | * OA_CorporateClients.cs |
| | | * |
| | | * 功 能: N/A |
| | | * 类 名: OA_CorporateClients |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-4-2 14:27:43 N/A 初版 |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | |
| | | using System; |
| | | using CY.Infrastructure.Domain; |
| | | using CY.Infrastructure.Common; |
| | | |
| | | namespace CY.Model |
| | | { |
| | | /// <summary> |
| | | /// 印刷参数 |
| | | /// </summary> |
| | | [Serializable] |
| | | public partial class OA_KaipiaoJineQueren : IAggregateRoot |
| | | { |
| | | |
| | | public OA_KaipiaoJineQueren() |
| | | { |
| | | } |
| | | #region Model |
| | | /// <summary> |
| | | /// id |
| | | /// </summary> |
| | | public int Keyid { get; set; } |
| | | /// <summary> |
| | | /// FirmId |
| | | /// </summary> |
| | | public Guid FirmId { get; set; } |
| | | /// <summary> |
| | | /// 客户id |
| | | /// </summary> |
| | | public Guid BuyerId { get; set; } |
| | | /// <summary> |
| | | /// 客户id |
| | | /// </summary> |
| | | public string BuyerName { get; set; } |
| | | |
| | | public int? BusinessManagerId { get; set; } |
| | | |
| | | public string BusinessManager { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 取人状态/未确认0,已确认1 |
| | | /// </summary> |
| | | public int? Querenstatus { get; set; } |
| | | |
| | | public decimal? Fukuanmoney { get; set; } |
| | | |
| | | public decimal? Hexiaomoney { get; set; } |
| | | |
| | | public decimal? WeiHexiaomoney { |
| | | get { |
| | | var fukuanmoney = Fukuanmoney.HasValue ? Fukuanmoney.Value : 0; |
| | | var hexiaomoney = Hexiaomoney.HasValue ? Hexiaomoney.Value : 0; |
| | | return (fukuanmoney - hexiaomoney); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 说明 |
| | | /// </summary> |
| | | public string OperationalMatters { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 创建人 |
| | | /// </summary> |
| | | public string Creater |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建时间 |
| | | /// </summary> |
| | | public DateTime? CreateTime |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | /// <summary> |
| | | /// 修改人 |
| | | /// </summary> |
| | | public string Updater |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | /// <summary> |
| | | /// 修改时间 |
| | | /// </summary> |
| | | public DateTime? LastUpdateTime |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | |
| | | |
| | | #endregion Model |
| | | |
| | | #region Visiter |
| | | |
| | | /// <summary> |
| | | /// 属性访问器 |
| | | /// </summary> |
| | | /// <param name="name">属性名</param> |
| | | /// <param name="index">索引</param> |
| | | /// <param name="isChange">是否将指定属性设置为传入值</param> |
| | | /// <param name="value">需要赋予的值</param> |
| | | /// <returns>与名称对应的属性值</returns> |
| | | public object Visiter(string name, int? index = -1, bool isChange = false, object value = null) |
| | | { |
| | | object theValue = null; |
| | | |
| | | |
| | | if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1) |
| | | { |
| | | this.Keyid = isChange ? MyConvert.ConvertToInt32(value).Value : Keyid; |
| | | theValue = this.Keyid; |
| | | } |
| | | else if ("FirmId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) |
| | | { |
| | | this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId; |
| | | theValue = this.FirmId; |
| | | } |
| | | else if ("BuyerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) |
| | | { |
| | | this.BuyerId = isChange ? MyConvert.ConvertToGuid(value) : BuyerId; |
| | | theValue = this.BuyerId; |
| | | } |
| | | else if ("BuyerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) |
| | | { |
| | | this.BuyerName = isChange ? MyConvert.ConvertToString(value) : BuyerName; |
| | | theValue = this.BuyerName; |
| | | } |
| | | |
| | | else if ("BusinessManagerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) |
| | | { |
| | | this.BusinessManagerId = isChange ? MyConvert.ConvertToInt32(value) : BusinessManagerId; |
| | | theValue = this.BusinessManagerId; |
| | | } |
| | | else if ("BusinessManager".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) |
| | | { |
| | | this.BusinessManager = isChange ? MyConvert.ConvertToString(value) : BusinessManager; |
| | | theValue = this.BusinessManager; |
| | | } |
| | | |
| | | else if ("OperationalMatters".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21) |
| | | { |
| | | this.OperationalMatters = isChange ? MyConvert.ConvertToString(value) : OperationalMatters; |
| | | theValue = this.OperationalMatters; |
| | | } |
| | | else if ("Fukuanmoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) |
| | | { |
| | | this.Fukuanmoney = isChange ? MyConvert.ConvertToDecimal(value) : Fukuanmoney; |
| | | theValue = this.Fukuanmoney; |
| | | } |
| | | else if ("Hexiaomoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) |
| | | { |
| | | this.Hexiaomoney = isChange ? MyConvert.ConvertToDecimal(value) : Hexiaomoney; |
| | | theValue = this.Hexiaomoney; |
| | | } |
| | | else if ("Querenstatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) |
| | | { |
| | | this.Querenstatus = isChange ? MyConvert.ConvertToInt32(value) : Querenstatus; |
| | | theValue = this.Querenstatus; |
| | | } |
| | | |
| | | |
| | | else if ("Creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) |
| | | { |
| | | this.Creater = isChange ? MyConvert.ConvertToString(value) : Creater; |
| | | theValue = this.Creater; |
| | | } |
| | | else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) |
| | | { |
| | | this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime; |
| | | theValue = this.CreateTime; |
| | | } |
| | | else if ("Updater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) |
| | | { |
| | | this.Updater = isChange ? MyConvert.ConvertToString(value) : Updater; |
| | | theValue = this.Updater; |
| | | } |
| | | else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) |
| | | { |
| | | this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; |
| | | theValue = this.LastUpdateTime; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return theValue; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
New file |
| | |
| | | /** |
| | | * OA_CorporateClients.cs |
| | | * |
| | | * 功 能: N/A |
| | | * 类 名: OA_CorporateClients |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-4-2 14:27:43 N/A 初版 |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | |
| | | using System; |
| | | using CY.Infrastructure.Domain; |
| | | using CY.Infrastructure.Common; |
| | | |
| | | namespace CY.Model |
| | | { |
| | | /// <summary> |
| | | /// 印刷参数 |
| | | /// </summary> |
| | | [Serializable] |
| | | public partial class OA_KaipiaoJineQuerendetail : IAggregateRoot |
| | | { |
| | | |
| | | public OA_KaipiaoJineQuerendetail() |
| | | { |
| | | } |
| | | #region Model |
| | | /// <summary> |
| | | /// id |
| | | /// </summary> |
| | | public int Keyid { get; set; } |
| | | /// <summary> |
| | | /// FirmId |
| | | /// </summary> |
| | | public int? KaipiaoJineQuerenId { get; set; } |
| | | /// <summary> |
| | | /// 客户id |
| | | /// </summary> |
| | | public Guid KaipiaoshenqingId { get; set; } |
| | | /// <summary> |
| | | |
| | | |
| | | public decimal? Hexiaomoney { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 创建人 |
| | | /// </summary> |
| | | public string Creater |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 创建时间 |
| | | /// </summary> |
| | | public DateTime? CreateTime |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | /// <summary> |
| | | /// 修改人 |
| | | /// </summary> |
| | | public string Updater |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | /// <summary> |
| | | /// 修改时间 |
| | | /// </summary> |
| | | public DateTime? LastUpdateTime |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | |
| | | |
| | | #endregion Model |
| | | |
| | | #region Visiter |
| | | |
| | | /// <summary> |
| | | /// 属性访问器 |
| | | /// </summary> |
| | | /// <param name="name">属性名</param> |
| | | /// <param name="index">索引</param> |
| | | /// <param name="isChange">是否将指定属性设置为传入值</param> |
| | | /// <param name="value">需要赋予的值</param> |
| | | /// <returns>与名称对应的属性值</returns> |
| | | public object Visiter(string name, int? index = -1, bool isChange = false, object value = null) |
| | | { |
| | | object theValue = null; |
| | | |
| | | |
| | | if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1) |
| | | { |
| | | this.Keyid = isChange ? MyConvert.ConvertToInt32(value).Value : Keyid; |
| | | theValue = this.Keyid; |
| | | } |
| | | else if ("KaipiaoJineQuerenId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) |
| | | { |
| | | this.KaipiaoJineQuerenId = isChange ? MyConvert.ConvertToInt32(value) : KaipiaoJineQuerenId; |
| | | theValue = this.KaipiaoJineQuerenId; |
| | | } |
| | | else if ("KaipiaoshenqingId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) |
| | | { |
| | | this.KaipiaoshenqingId = isChange ? MyConvert.ConvertToGuid(value) : KaipiaoshenqingId; |
| | | theValue = this.KaipiaoshenqingId; |
| | | } |
| | | |
| | | |
| | | else if ("Hexiaomoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) |
| | | { |
| | | this.Hexiaomoney = isChange ? MyConvert.ConvertToDecimal(value) : Hexiaomoney; |
| | | theValue = this.Hexiaomoney; |
| | | } |
| | | |
| | | |
| | | |
| | | else if ("Creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) |
| | | { |
| | | this.Creater = isChange ? MyConvert.ConvertToString(value) : Creater; |
| | | theValue = this.Creater; |
| | | } |
| | | else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) |
| | | { |
| | | this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime; |
| | | theValue = this.CreateTime; |
| | | } |
| | | else if ("Updater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) |
| | | { |
| | | this.Updater = isChange ? MyConvert.ConvertToString(value) : Updater; |
| | | theValue = this.Updater; |
| | | } |
| | | else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) |
| | | { |
| | | this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; |
| | | theValue = this.LastUpdateTime; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return theValue; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | <Compile Include="OA\OA_DepartmentDAL.cs" /> |
| | | <Compile Include="OA\OA_DocumentDAL.cs" /> |
| | | <Compile Include="OA\OA_DocumentDicDAL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaoJineQuerenDAL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewcuishouDAL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewDAL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewhuikuanDAL.cs" /> |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 收款(线下转账、现金) |
| | | /// </summary> |
| | | /// <param name="orderId">订单编号</param> |
| | | /// <param name="firmAccountRecord">操作记录</param> |
| | | /// <returns></returns> |
| | | public bool ReceiveMoneyToQueren(int orderId, OA_FirmAccountRecord firmAccountRecord) |
| | | { |
| | | bool isWin = false; |
| | | if (0 >= orderId || !firmAccountRecord.Money.HasValue) |
| | | return false; |
| | | else |
| | | ; |
| | | if ( 0 > firmAccountRecord.Money.Value) |
| | | return false; |
| | | else |
| | | ; |
| | | try |
| | | { |
| | | OA_FirmAccountRecordDAL oA_FirmAccountRecordDAL = new OA_FirmAccountRecordDAL(_dataBase); |
| | | using (TransactionScope tran = new TransactionScope()) |
| | | { |
| | | |
| | | |
| | | //更新订单支付金额 |
| | | isWin = this.UpdateOrderPayedMoney(orderId, -1, firmAccountRecord.Money.Value); |
| | | if (!isWin) |
| | | { |
| | | return isWin; |
| | | } |
| | | else |
| | | ; |
| | | //更新订单状态 |
| | | isWin = this.UpdateOrderPayState(orderId); |
| | | if (!isWin) |
| | | { |
| | | return isWin; |
| | | } |
| | | else |
| | | ; |
| | | tran.Complete(); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return isWin; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 收款(外协预付款、客户预付款) |
| | | /// </summary> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using CY.IDAL; |
| | | using System.Data.SqlClient; |
| | | using System.Data; |
| | | using CY.Model; |
| | | using System.Transactions; |
| | | |
| | | |
| | | namespace CY.SQLDAL |
| | | { |
| | | public class OA_KaipiaoJineQuerenDAL : IOA_KaipiaoJineQuerenDAL |
| | | { |
| | | |
| | | private Database _dataBase = null; |
| | | #region 常量 |
| | | /// <summary> |
| | | /// 查询目标 |
| | | /// </summary> |
| | | const string SELECTTARGET = " t.* "; |
| | | /// <summary> |
| | | /// 查询来源 |
| | | /// </summary> |
| | | const string FROMSOUCEBEFORE = " ( select distinct ok.* , " + |
| | | " oe.CompanyName as BuyerName, os.Name as BusinessManager " + |
| | | " from [OA_KaipiaoJineQueren] ok inner join [OA_CorporateClients] oe on oe.Keyid = ok.[BuyerId] " + |
| | | |
| | | |
| | | " left join [OA_Staff] os on ok.BusinessManagerId = os.Keyid " + |
| | | |
| | | |
| | | " where 0=0 "; |
| | | const string FROMSOUCEEND = ") as t "; |
| | | /// <summary> |
| | | /// 分页默认排序字段 |
| | | /// </summary> |
| | | const string ORDERBY = " CreateTime desc "; |
| | | #endregion |
| | | public OA_KaipiaoJineQuerenDAL() |
| | | { |
| | | _dataBase = new Database(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 新增 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool InserModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.OA_KaipiaoJineQueren trueModel = model as Model.OA_KaipiaoJineQueren; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@BuyerId",trueModel.BuyerId), |
| | | new SqlParameter("@BusinessManagerId",trueModel.BusinessManagerId.HasValue?trueModel.BusinessManagerId.Value:0), |
| | | new SqlParameter("@Fukuanmoney",trueModel.Fukuanmoney.HasValue?trueModel.Fukuanmoney.Value:new decimal(0)), |
| | | new SqlParameter("@Hexiaomoney",trueModel.Hexiaomoney.HasValue?trueModel.Hexiaomoney.Value:new decimal(0)), |
| | | new SqlParameter("@OperationalMatters",string.IsNullOrEmpty(trueModel.OperationalMatters)?"":trueModel.OperationalMatters), |
| | | new SqlParameter("@Querenstatus",trueModel.Querenstatus.HasValue?trueModel.Querenstatus.Value:0), |
| | | new SqlParameter("@CreateTime",trueModel.CreateTime), |
| | | new SqlParameter("@Updater",trueModel.Updater), |
| | | new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime), |
| | | new SqlParameter("@Creater",trueModel.Creater), |
| | | |
| | | }; |
| | | string sql = "Insert Into OA_KaipiaoJineQueren ([FirmId],[BuyerId],[BusinessManagerId],Fukuanmoney,Hexiaomoney,OperationalMatters,Querenstatus, [Creater],[CreateTime],[Updater],[LastUpdateTime])" |
| | | + " Values ( @FirmId,@BuyerId, @BusinessManagerId,@Fukuanmoney,@Hexiaomoney,@OperationalMatters,@Querenstatus, @Creater,@CreateTime,@Updater,@LastUpdateTime)"; |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 新增 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool InserModeldetail(OA_KaipiaoJineQuerendetail trueModel) |
| | | { |
| | | |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | new SqlParameter("@KaipiaoJineQuerenId",trueModel.KaipiaoJineQuerenId.HasValue?trueModel.KaipiaoJineQuerenId.Value:0), |
| | | new SqlParameter("@KaipiaoshenqingId",trueModel.KaipiaoshenqingId), |
| | | new SqlParameter("@Hexiaomoney",trueModel.Hexiaomoney.HasValue?trueModel.Hexiaomoney.Value:new decimal(0)), |
| | | |
| | | new SqlParameter("@CreateTime",trueModel.CreateTime), |
| | | new SqlParameter("@Updater",trueModel.Updater), |
| | | new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime), |
| | | new SqlParameter("@Creater",trueModel.Creater), |
| | | |
| | | }; |
| | | string sql = "Insert Into OA_KaipiaoJineQuerendetail ([KaipiaoJineQuerenId],[KaipiaoshenqingId],Hexiaomoney, [Creater],[CreateTime],[Updater],[LastUpdateTime])" |
| | | + " Values ( @KaipiaoJineQuerenId,@KaipiaoshenqingId,@Hexiaomoney, @Creater,@CreateTime,@Updater,@LastUpdateTime)"; |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.OA_KaipiaoJineQueren trueModel = model as Model.OA_KaipiaoJineQueren; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@BuyerId",trueModel.BuyerId), |
| | | new SqlParameter("@BusinessManagerId",trueModel.BusinessManagerId.HasValue?trueModel.BusinessManagerId.Value:0), |
| | | new SqlParameter("@Fukuanmoney",trueModel.Fukuanmoney.HasValue?trueModel.Fukuanmoney.Value:new decimal(0)), |
| | | new SqlParameter("@Hexiaomoney",trueModel.Hexiaomoney.HasValue?trueModel.Hexiaomoney.Value:new decimal(0)), |
| | | new SqlParameter("@OperationalMatters",string.IsNullOrEmpty(trueModel.OperationalMatters)?"":trueModel.OperationalMatters), |
| | | new SqlParameter("@Querenstatus",trueModel.Querenstatus.HasValue?trueModel.Querenstatus.Value:0), |
| | | new SqlParameter("@CreateTime",trueModel.CreateTime), |
| | | new SqlParameter("@Updater",trueModel.Updater), |
| | | new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime), |
| | | new SqlParameter("@Creater",trueModel.Creater), |
| | | |
| | | |
| | | |
| | | |
| | | }; |
| | | string sql = "Update OA_KaipiaoJineQueren Set [FirmId]=@FirmId,[BuyerId]=@BuyerId,[BusinessManagerId]=@BusinessManagerId,Fukuanmoney=@Fukuanmoney,Hexiaomoney=@Hexiaomoney,OperationalMatters=@OperationalMatters,Querenstatus=@Querenstatus, [Creater]=@Creater,[CreateTime]=@CreateTime,[Updater]=@Updater,[LastUpdateTime]=@LastUpdateTime where [Keyid] =@Keyid "; |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 根据编号获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | public OA_KaipiaoJineQueren GetModelByKeyid(Guid? keyid) |
| | | { |
| | | try |
| | | { |
| | | string condition = " "; |
| | | if (!keyid.Equals(Guid.Empty)) |
| | | { |
| | | condition = " Keyid='" + keyid + "'"; |
| | | } |
| | | else |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | // return null;//错误数据返会空 |
| | | |
| | | IList<OA_KaipiaoJineQueren> result = _dataBase.SelectModel<OA_KaipiaoJineQueren>("*", "OA_KaipiaoJineQueren", condition) as IList<OA_KaipiaoJineQueren>;//执行查询 |
| | | |
| | | return (null == result || result.Count == 0) ? null : result[0];//返回结果 |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 全部查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_KaipiaoJineQueren> SelectAllModel(Infrastructure.Query.Query query) |
| | | { |
| | | return _dataBase.SelectModel<Model.OA_KaipiaoJineQueren>(" * ", " OA_KaipiaoJineQueren ") as IList<Model.OA_KaipiaoJineQueren>;//执行查询 |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 全部查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_KaipiaoJineQueren> GetModelBybuyerid(Guid buyerid) |
| | | { |
| | | return _dataBase.SelectModel<Model.OA_KaipiaoJineQueren>(" ok.* , oe.CompanyName as BuyerName, os.Name as BusinessManager ", " OA_KaipiaoJineQueren ok inner join [OA_CorporateClients] oe on oe.Keyid = ok.[BuyerId] left join [OA_Staff] os on ok.BusinessManagerId = os.Keyid ", " ok.BuyerId = '" + buyerid + "'") as IList<Model.OA_KaipiaoJineQueren>;//执行查询 |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 分页查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <param name="pagination"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_KaipiaoJineQueren> SelectModelPage(Infrastructure.Query.Query query, Infrastructure.Query.Pagination pagination) |
| | | { |
| | | if (null == pagination || null == query || null == query.Criteria || 1 > query.Criteria.Count) |
| | | return null; |
| | | //query.Criteria 首个元素必须是排序字段,其值为结果排序字段 |
| | | |
| | | int maxParamIndex = query.Criteria.Count - 1;//最大索引 |
| | | |
| | | string[] orderbys = new string[] { ORDERBY }; |
| | | string resultOrderBy = "";//结果集排序方式 |
| | | |
| | | if ("@orderBy".Equals(query.Criteria[maxParamIndex].PropertyName)) |
| | | { |
| | | orderbys = string.Format("{0}", query.Criteria[maxParamIndex].Value).Split(','); |
| | | resultOrderBy = query.Criteria[maxParamIndex].Value.ToString();//= 1 == orderbys.Length ? resultOrderBy : orderbys[1]; |
| | | } |
| | | string fromSouce = string.Format("{0}{1}{2}", FROMSOUCEBEFORE, query.Criteria[0].Value, FROMSOUCEEND);//拼装条件 |
| | | |
| | | |
| | | return _dataBase.SelectModelPage<Model.OA_KaipiaoJineQueren>(pagination, SELECTTARGET, fromSouce, orderbys[0], resultOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.OA_KaipiaoJineQueren trueModel = model as Model.OA_KaipiaoJineQueren; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | new SqlParameter("@Keyid",trueModel.Keyid) |
| | | }; |
| | | string sql = "Delete OA_KaipiaoJineQueren Where [Keyid] = @Keyid "; |
| | | |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | |
| | | <Content Include="Pages\business\BackVisitNoteEdit.aspx" /> |
| | | <Content Include="Pages\business\BargainPrice.aspx" /> |
| | | <Content Include="Pages\business\BargainPriceByFirm.aspx" /> |
| | | <Content Include="Pages\business\InvoicingWeiquerenshouru.aspx" /> |
| | | <Content Include="Pages\business\InvoicingHuikuan.aspx" /> |
| | | <Content Include="Pages\business\InvoicingCuishou.aspx" /> |
| | | <Content Include="Pages\business\kaipiaoKehu.aspx" /> |
| | |
| | | <Content Include="Pages\common\U_Info.ascx" /> |
| | | <Content Include="Pages\common\U_Link.ascx" /> |
| | | <Content Include="Pages\common\U_Login.ascx" /> |
| | | <Content Include="Pages\financial\DepositsCustomershouruqueren.aspx" /> |
| | | <Content Include="Pages\financial\DepositsCustomerFapiao.aspx" /> |
| | | <Content Include="Pages\financial\FirmAccountPrint.aspx" /> |
| | | <Content Include="Pages\financial\FirmAccountPrintTable.aspx" /> |
| | | <Content Include="Pages\financial\InvoicingShouruqueren.aspx" /> |
| | | <Content Include="Pages\financial\MemberOrderMoneyReceive.aspx" /> |
| | | <Content Include="Pages\financial\MemberOrderPayList.aspx" /> |
| | | <Content Include="Pages\financial\OrderFinancialPrint.aspx" /> |
| | |
| | | <Compile Include="Pages\business\BargainPriceByFirm.aspx.designer.cs"> |
| | | <DependentUpon>BargainPriceByFirm.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\InvoicingWeiquerenshouru.aspx.cs"> |
| | | <DependentUpon>InvoicingWeiquerenshouru.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\InvoicingWeiquerenshouru.aspx.designer.cs"> |
| | | <DependentUpon>InvoicingWeiquerenshouru.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\InvoicingHuikuan.aspx.cs"> |
| | | <DependentUpon>InvoicingHuikuan.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | <Compile Include="Pages\common\U_Login.ascx.designer.cs"> |
| | | <DependentUpon>U_Login.ascx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\financial\DepositsCustomershouruqueren.aspx.cs"> |
| | | <DependentUpon>DepositsCustomershouruqueren.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\financial\DepositsCustomershouruqueren.aspx.designer.cs"> |
| | | <DependentUpon>DepositsCustomershouruqueren.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\financial\DepositsCustomerFapiao.aspx.cs"> |
| | | <DependentUpon>DepositsCustomerFapiao.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | <Compile Include="Pages\financial\FirmAccountPrintTable.aspx.designer.cs"> |
| | | <DependentUpon>FirmAccountPrintTable.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\financial\InvoicingShouruqueren.aspx.cs"> |
| | | <DependentUpon>InvoicingShouruqueren.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\financial\InvoicingShouruqueren.aspx.designer.cs"> |
| | | <DependentUpon>InvoicingShouruqueren.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\financial\MemberOrderMoneyReceive.aspx.cs"> |
| | | <DependentUpon>MemberOrderMoneyReceive.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | } |
| | | |
| | | } |
| | | //收入确认 |
| | | function ViewShouru(personId, shenqingleixing) { |
| | | if (shenqingleixing == "订单开票") { |
| | | top.Dialog.open({ URL: "/Pages/financial/InvoicingShouruqueren.aspx?id=" + personId, Title: "订单确认收入", Width: 600, Height: 800 }); |
| | | } else { |
| | | top.Dialog.open({ URL: "/Pages/financial/DepositsCustomershouruqueren.aspx?Keyid=" + personId, Title: "客户预付款确认收入", Width: 900, Height: 680 }); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | //回款 |
| | | function ViewFukuan(personId) { |
| | |
| | | <th width="60"> |
| | | 开票状态 |
| | | </th> |
| | | <th width="120"> |
| | | <th width="160"> |
| | | 操作 |
| | | |
| | | </th> |
| | |
| | | |
| | | <a href='javascript:void(0)' title='付款登记' class='a_under' onclick='ViewFukuan("<%#Eval("Keyid")%>")'> 付款登记 </a> |
| | | <a href='javascript:void(0)' title='催款' class='a_under' onclick='ViewCuishou("<%#Eval("Keyid")%>")'> 催款 </a> |
| | | <a href='javascript:void(0)' title='收款' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 收款 </a> |
| | | <a href='javascript:void(0)' title='收款' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 收款 </a> |
| | | <a href='javascript:void(0)' title='收款' class='a_under' onclick='ViewShouru("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 收入确认 </a> |
| | | </td> |
| | | |
| | | </tr> |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InvoicingWeiquerenshouru.aspx.cs" Inherits="CY.WebForm.Pages.business.InvoicingWeiquerenshouru" %> |
| | | |
| | | |
| | | <!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 ToBatchPayList() { |
| | | |
| | | // var ids = ''; |
| | | // var cks = $("input[name='ckId']:checked"); |
| | | // if (cks.length == 0) { alertMsg('没有选中任何项!'); return; } else { } |
| | | // var isCan = true; |
| | | // var BuyerId = ''; |
| | | // var SellerOrderIds = ''; |
| | | // var bbbb = true; |
| | | // var cccc = true; |
| | | // cks.each( |
| | | // function () { |
| | | |
| | | // var ckVal = $(this).val(); |
| | | |
| | | // var ckValJson = eval('(' + ckVal + ')'); |
| | | |
| | | // PayState = ckValJson.PayState; |
| | | // //剔除已经开票申请的单据 |
| | | // if (BuyerId != '' && ckValJson.buyerId != BuyerId) { |
| | | // bbbb = false; |
| | | |
| | | // } else { |
| | | // BuyerId = ckValJson.buyerId; |
| | | // } |
| | | // if (ckValJson.Kaipiaoshenqing != 1) { |
| | | // cccc = false; |
| | | // } |
| | | |
| | | // ids = ids + ',' + ckValJson.id; |
| | | |
| | | |
| | | |
| | | // } |
| | | // ); |
| | | |
| | | // if (!bbbb) { |
| | | // alertMsg('必须是同一家客户!'); |
| | | // return; |
| | | // } |
| | | // if (!cccc) { |
| | | // alertMsg('有状态不是开票已申请的订单!'); |
| | | // return; |
| | | // } |
| | | |
| | | // if (!isCan) { |
| | | // // alertMsg('请选择未受理的订单!'); |
| | | // } |
| | | // else { |
| | | // if (ids != '') { |
| | | // ids = ids.substring(1); |
| | | // SellerOrderIds = SellerOrderIds.substring(1); |
| | | |
| | | // } else { |
| | | // alertMsg('没有选中未支付订单!'); |
| | | // return; |
| | | // } |
| | | |
| | | // top.Dialog.open({ URL: '/Pages/business/InvoicingWeiquerenshouruEdit.aspx?id=' + ids, Title: '批量确认发票', Height: 400, Width: 600 }); |
| | | // } |
| | | //} |
| | | //查看客户资料 |
| | | function Viewkehuqianshou(Keyid, SellerOrderId) { |
| | | top.Dialog.open({ URL: "/Pages/business/OrderKehuqianshou.aspx?id=" + Keyid + "&SellerOrderId=" + SellerOrderId, Title: "客户签收", Width: 400, Height: 600 }); |
| | | } |
| | | |
| | | |
| | | //查看客户资料 |
| | | function Viewkehu(personId) { |
| | | top.Dialog.open({ URL: "/Pages/business/InvoicingWeiquerenshouruEdit.aspx?id=" + personId, Title: "确认发票", Width: 400, Height: 600 }); |
| | | } |
| | | |
| | | //催收 |
| | | function ViewCuishou(personId) { |
| | | top.Dialog.open({ URL: "/Pages/business/InvoicingCuishou.aspx?id=" + personId, Title: "催款", Width: 600, Height: 800 }); |
| | | } |
| | | //收款 |
| | | function ViewShoukuan(personId, shenqingleixing) { |
| | | if (shenqingleixing == "订单开票") { |
| | | top.Dialog.open({ URL: "/Pages/financial/InvoicingShoukuan.aspx?id=" + personId, Title: "订单收款", Width: 600, Height: 800 }); |
| | | } else { |
| | | top.Dialog.open({ URL: "/Pages/financial/DepositsCustomerFapiao.aspx?Keyid=" + personId, Title: "客户预付款存款", Width: 900, Height: 680 }); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /* |
| | | 处理受理订单 |
| | | */ |
| | | var ViewFukuan = function (orderId) { |
| | | top.Dialog.confirm('确认删除收入?', function () { |
| | | window.submitUrl = '/Pages/business/InvoicingWeiquerenshouru.aspx'; |
| | | CallServer({ Target: "AcceptOrder", id: orderId }, function (data, textStatus) { |
| | | if ('1' == data) { |
| | | alertMsg('操作成功!'); |
| | | RefreshDIVOpener(); //关闭页面 |
| | | } else { |
| | | alertMsg('-1' == data ? '删除过程中发生异常,请重新删除!' : '删除失败!'); |
| | | //dialog.close(); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | //查看客户资料 |
| | | function Viewkaipiao(Keyid, SellerOrderId) { |
| | | window.open("/Pages/business/InvoicingOrderPrint.aspx?Keyid=" + Keyid + "&SellerOrderId=" + SellerOrderId, '', ''); |
| | | } |
| | | //查看客户资料 |
| | | function View(personId) { |
| | | top.Dialog.open({ URL: "/Pages/business/CorporateClientsDetail.aspx?Keyid=" + personId, Title: "查看客户", Width: 900, Height: 580 }); |
| | | } |
| | | |
| | | |
| | | </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; } |
| | | .auto-style1 { |
| | | width: 39px; |
| | | } |
| | | .auto-style3 { |
| | | width: 13px; |
| | | } |
| | | .auto-style4 { |
| | | width: 55px; |
| | | } |
| | | .auto-style5 { |
| | | width: 26px; |
| | | } |
| | | .auto-style6 { |
| | | cursor: pointer; |
| | | width: 26px; |
| | | } |
| | | </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 class="ali03"> |
| | | 付款日期: |
| | | </td> |
| | | <td style="width: 215px"> |
| | | <input id="txtSQBeginDate" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtSQEndDate" type="text" runat="server" class='date w80px' maxlength='10' /> |
| | | </td> |
| | | <td class="ali03"> |
| | | 付款单位: |
| | | </td> |
| | | <td> |
| | | <input id='txtCustormerName' runat="server" maxlength='50' /> |
| | | </td> |
| | | <td class="ali03"> |
| | | 是否确认: |
| | | </td> |
| | | <td> |
| | | <select keepdefaultstyle='true' id='selQuerenstatus' runat="server" > |
| | | <option value="">全部</option> |
| | | <option value="1">是</option> |
| | | <option value="0">否</option> |
| | | </select> |
| | | </td> |
| | | <td class="ali03"> |
| | | 业务经理: |
| | | </td> |
| | | <td> |
| | | <select keepdefaultstyle='true' id='selBusinessManager' runat="server" datatextfield='Name' datavaluefield='Keyid'> |
| | | </select> |
| | | </td> |
| | | |
| | | |
| | | <td > |
| | | <asp:button id="btn_Search" text="查询" runat="server" /> <input type="button" value='重置' onclick='document.body.innerHTML="";window.location=window.location;' /> |
| | | |
| | | </td> |
| | | |
| | | |
| | | |
| | | </tr> |
| | | |
| | | </table> |
| | | </div> |
| | | |
| | | <div clear="fl" dir="ltr"> |
| | | <table class="tableStyle tableStyleXS" useclick="false" usecheckbox="true" sortmode="false" id="test_table"> |
| | | <thead> |
| | | <tr> |
| | | <th width="25"> |
| | | 编号 |
| | | </th> |
| | | <th style="text-align: center;" width="70"> |
| | | 付款日期 |
| | | </th> |
| | | |
| | | |
| | | |
| | | <th style="text-align: center;"width="150"> |
| | | 付款单位 |
| | | </th> |
| | | |
| | | |
| | | <th width="60"> |
| | | 金额 |
| | | </th> |
| | | <th width="60"> |
| | | 已确认金额 |
| | | </th> |
| | | <th width="200"> |
| | | 付款说明 |
| | | </th> |
| | | <th style="text-align: center;" width="70"> |
| | | 业务经理 |
| | | </th> |
| | | <th width="60"> |
| | | 操作 |
| | | |
| | | </th> |
| | | |
| | | |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <asp:repeater id="rptData" runat="server"> |
| | | <itemtemplate> |
| | | <tr> |
| | | |
| | | <td> |
| | | <%#Container.ItemIndex +1 /*(UCPager1.PageSize *( UCPager1.PageIndex-1)+1)*/%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("CreateTime", "{0:yyyy-MM-dd}")%> |
| | | |
| | | </td> |
| | | <td style="text-align: center;"> |
| | | <div style="width: 140px; word-wrap: break-word; text-align:justify;"> |
| | | <a href='javascript:void(0)' title='点击查看 <%#Eval("BuyerName").ToString()%> 资料' class='a_under' onclick='View("<%#Eval("BuyerId")%>")'><%#Eval("BuyerName").ToString().Length > 10 ? (Eval("BuyerName").ToString().Substring(0, 10) + "..") : Eval("BuyerName").ToString()%></a> |
| | | </div> |
| | | </td> |
| | | |
| | | <td> |
| | | <%#Eval("Fukuanmoney", "{0:F}")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Hexiaomoney", "{0:F}")%> |
| | | </td> |
| | | <td > |
| | | <%#Eval("OperationalMatters")%> |
| | | |
| | | |
| | | </td> |
| | | <td style="text-align: center;"> |
| | | <%#Eval("BusinessManager")%> |
| | | |
| | | |
| | | </td> |
| | | |
| | | |
| | | |
| | | |
| | | <td> |
| | | |
| | | <a href='javascript:void(0)' title='付款登记' class='a_under' onclick='ViewFukuan("<%#Eval("Keyid")%>")'> 删除 </a> |
| | | |
| | | </td> |
| | | |
| | | </tr> |
| | | </itemtemplate> |
| | | </asp:repeater> |
| | | </tbody> |
| | | <tr> |
| | | <td colspan="3"> |
| | | 合计 |
| | | </td> |
| | | |
| | | |
| | | <td > |
| | | <span id="heji" runat="server" ></span> |
| | | </td> |
| | | <td > |
| | | <span id="heji1" runat="server" ></span> |
| | | </td> |
| | | <td colspan="3"> |
| | | |
| | | </td> |
| | | |
| | | |
| | | |
| | | </tr> |
| | | |
| | | </table> |
| | | <uc:ucpager id="UCPager1" runat="server" /> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | <script type="text/javascript" language="javascript"> |
| | | |
| | | |
| | | </script> |
| | | </html> |
New file |
| | |
| | | /** |
| | | * OrderList.aspx.cs |
| | | * |
| | | * 功 能: 订单列表 |
| | | * 类 名: OrderList |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-5-6 9:16 吴崎均 初版 |
| | | * V0.02 2013-5-6 18:02 吴崎均 完成分页查询 |
| | | * V0.03 2013-5-7 17:28 吴崎均 增加订单状态设置(置为:生产、完成)并加上以限制(如:线上订单不可置为完成)、 |
| | | * 增加批量删除并予以限制(只能删除未受理的厂商新增订单)、 |
| | | * 增加受理操作并加以限制(只有未受理的订单才能受理) |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | 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.Model; |
| | | using CY.BLL.Sys; |
| | | using CY.Infrastructure.Common; |
| | | using CY.BLL; |
| | | using CY.WebForm.Pages.common; |
| | | using System.Transactions; |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | public partial class InvoicingWeiquerenshouru : BasePage |
| | | { |
| | | EC_OrderBasicBLL _eC_OrderBasicBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | LF_OrderFileBLL _lF_OrderFileBLL = null; |
| | | EC_OrderBLL _eC_OrderBLL = null; |
| | | OA_KaipiaoJineQuerenBLL oA_KaipiaoJineQuerenBLL = null; |
| | | |
| | | /// <summary> |
| | | /// 初始化构造 |
| | | /// </summary> |
| | | public InvoicingWeiquerenshouru() |
| | | { |
| | | _eC_OrderBasicBLL = new EC_OrderBasicBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | _lF_OrderFileBLL = new LF_OrderFileBLL(); |
| | | _eC_OrderBLL = new EC_OrderBLL(); |
| | | oA_KaipiaoJineQuerenBLL = new OA_KaipiaoJineQuerenBLL(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | if (Request["downId"] != null) |
| | | { |
| | | int iDownId = Convert.ToInt32(Request["downId"]); |
| | | LF_OrderFile model = _lF_OrderFileBLL.GetModel(iDownId); |
| | | model.FileState = 1; |
| | | _lF_OrderFileBLL.UpdateModel(model); |
| | | string fileName = "";//客户端保存的文件名 |
| | | string filePath = "";//路径 |
| | | if (model != null) |
| | | { |
| | | fileName = model.FileName;//客户端保存的文件名 |
| | | filePath = model.FilePath;//路径 |
| | | } |
| | | else |
| | | { |
| | | JavaScript.MessageBox("文件不存在", this); |
| | | return; |
| | | } |
| | | System.IO.FileInfo fileInfo = new System.IO.FileInfo(filePath); |
| | | if (fileInfo.Exists == true) |
| | | { |
| | | const long ChunkSize = 102400;//100K 每次读取文件,只读取100K,这样可以缓解服务器的压力 |
| | | byte[] buffer = new byte[ChunkSize]; |
| | | Response.Clear(); |
| | | System.IO.FileStream iStream = System.IO.File.OpenRead(filePath); |
| | | long dataLengthToRead = iStream.Length;//获取下载的文件总大小 |
| | | Response.ContentType = "application/octet-stream"; |
| | | Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(fileName)); |
| | | while (dataLengthToRead > 0 && Response.IsClientConnected) |
| | | { |
| | | int lengthRead = iStream.Read(buffer, 0, Convert.ToInt32(ChunkSize));//读取的大小 |
| | | Response.OutputStream.Write(buffer, 0, lengthRead); |
| | | Response.Flush(); |
| | | dataLengthToRead = dataLengthToRead - lengthRead; |
| | | } |
| | | Response.Close(); |
| | | } |
| | | Response.Redirect("/Pages/business/OrderListBatchOperation.aspx"); |
| | | return; |
| | | } |
| | | switch (Request["Target"]) |
| | | { |
| | | case "deleteOrderAll2": |
| | | AcceptAll2(); |
| | | break; |
| | | case "deleteOrderAll3": |
| | | AcceptAll3(); |
| | | break; |
| | | case "AcceptOrder": |
| | | Accept(); |
| | | break; |
| | | case "AcceptOrderAll": |
| | | AcceptAll(); |
| | | break; |
| | | case "ChangeState": |
| | | //ChangeOrderState(); |
| | | break; |
| | | case "BatchDelete": |
| | | CY.WebForm.cs.WebUtil.DeleteData(_eC_OrderBasicBLL.DeleteDataByIds, CurrentUser.ShortName);//调用通用删除方法 |
| | | break; |
| | | case "BatchToOver": |
| | | UpdataState(-1);//设置状态为完成(不能是1'未受理'或2'已受理') |
| | | break; |
| | | case "BatchToProduction": |
| | | //UpdataState(3);//设置状态为生产中(不能是1'未受理'或2'已受理') |
| | | break; |
| | | case "BatchToSend": |
| | | UpdataState(4);//设置状态为已完工 (不能是1'未受理'或2'已受理') |
| | | break; |
| | | case "ToAccountDelay": |
| | | Delay(1);//请求打款延期 |
| | | break; |
| | | case "DeliveryDelay": |
| | | Delay(2);//请求交货延期 |
| | | break; |
| | | case "OrderRepeal": |
| | | Delay(3);//请求撤单 |
| | | break; |
| | | case "ReplyRequest"://答复订单请求 |
| | | RequestReply(); |
| | | break; |
| | | case "RetireOrderBySeller": //卖家直接撤单,或者 |
| | | RetireOrderBySeller(); |
| | | break; |
| | | case "CanPrintAwb": |
| | | CanPrintAwb(); |
| | | break; |
| | | default: |
| | | Page_Load_Default(); |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | Response.Clear(); |
| | | //Response.Write("参数错误"); |
| | | Response.Write(ex.Message); |
| | | } |
| | | Response.End(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 判断是否可以批量打印送货单 |
| | | /// </summary> |
| | | public void CanPrintAwb() |
| | | { |
| | | EC_AcceptWayByOrderBLL _AcceptWayByOrderBLL = new EC_AcceptWayByOrderBLL(); |
| | | string orderIds = Request["orderIds"].ToString(); |
| | | string[] orderIdArry = orderIds.Split(','); |
| | | bool IsFirst = true; |
| | | string firstAccepterAddress = string.Empty; |
| | | string result = string.Empty; |
| | | string jsonStr = "IsCan:'true'"; |
| | | string msg = "只有送货上门且送货地址相同的订单才能打印送货单"; |
| | | foreach (string orderIdStr in orderIdArry) |
| | | { |
| | | int orderId = orderIdStr.ToInt32().Value; |
| | | EC_AcceptWayByOrder model = _AcceptWayByOrderBLL.GetModelByTargetId(orderId); |
| | | if (model == null) |
| | | continue; |
| | | if (IsFirst) |
| | | { |
| | | firstAccepterAddress = model.AccepterAddress.Trim(); |
| | | } |
| | | if (model.AcceptTypeId.Value != 106) |
| | | { |
| | | jsonStr = "IsCan:'false',Msg:'" + msg + "'"; |
| | | break; |
| | | } |
| | | if (model.AccepterAddress.Trim() != firstAccepterAddress) |
| | | { |
| | | jsonStr = "IsCan:'false',Msg:'" + msg + "'"; |
| | | break; |
| | | } |
| | | IsFirst = false; |
| | | } |
| | | result = "{" + jsonStr + "}"; |
| | | Response.Write(result); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新状态 |
| | | /// </summary> |
| | | private void UpdataState(int stateId) |
| | | { |
| | | Response.Clear(); |
| | | if (1 == stateId || 2 == stateId) |
| | | { |
| | | HttpContext.Current.Response.Write(-2); |
| | | return; |
| | | } |
| | | string paramValue = HttpContext.Current.Request["ids"]; |
| | | //string stateStr=HttpContext.Current.Request["state"]; |
| | | string remark = string.Format("{0}", Request["remark"]); |
| | | int? tempId; |
| | | //tempId = string.IsNullOrEmpty(stateStr)?null:MyConvert.ConvertToInt32(stateStr); |
| | | if (string.IsNullOrEmpty(paramValue)/*||!tempId.HasValue*/) |
| | | { |
| | | HttpContext.Current.Response.Write(-2); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | |
| | | //int stateId=tempId.Value; |
| | | string[] splitResult = paramValue.Split(','); |
| | | int i = -1; |
| | | |
| | | List<EC_OrderOperate> oprates = new List<EC_OrderOperate>(); |
| | | while (++i < splitResult.Length) |
| | | { |
| | | tempId = MyConvert.ConvertToInt32(splitResult[i]); |
| | | if (!tempId.HasValue) |
| | | { |
| | | HttpContext.Current.Response.Write(-2); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | oprates.Add(new EC_OrderOperate() |
| | | { |
| | | OperateType = stateId, |
| | | OrderId = tempId.Value, |
| | | Operator = CurrentUser.ShortName, |
| | | Remark = remark |
| | | }); |
| | | } |
| | | HttpContext.Current.Response.Write((_eC_OrderBasicBLL.UpdateOrderState(oprates.ToArray()) ? 1 : 0)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 受理订单(全部订单受理) |
| | | /// </summary> |
| | | private void Accept() |
| | | { |
| | | Response.Clear(); |
| | | |
| | | int? orderId = string.IsNullOrEmpty(Request["id"]) ? null : MyConvert.ConvertToInt32(Request["id"]); |
| | | if (!orderId.HasValue ) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | var a_KaipiaoJineQueren = new OA_KaipiaoJineQueren(); |
| | | a_KaipiaoJineQueren.Keyid = orderId.Value; |
| | | Response.Write(oA_KaipiaoJineQuerenBLL.DeleteModel(a_KaipiaoJineQueren) ? "1" : "0"); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 批量受理订单 |
| | | /// </summary> |
| | | public void AcceptAll() |
| | | { |
| | | Response.Clear(); |
| | | PayAbout payAbout = new PayAbout(); |
| | | payAbout.LoadNewestPaymentAccount(true); |
| | | double? commission = MyConvert.ConvertToDouble(CY.Config.WebInfo.Instance.FirmOrderAgencyFee); |
| | | string orderIds = string.Empty; |
| | | ; |
| | | if (Request["ids"] != null) |
| | | { |
| | | orderIds = Request["ids"].ToString(); |
| | | } |
| | | if (string.IsNullOrEmpty(orderIds) || !commission.HasValue) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | Response.Write(_eC_OrderBasicBLL.AcceptOrderAll(orderIds, commission.Value) ? "1" : "0"); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 改变订单状态(暂时不启用) |
| | | /// </summary> |
| | | private void ChangeOrderState() |
| | | { |
| | | Response.Clear(); |
| | | string idsStr = Request["ids"]; |
| | | string stateIdStr = Request["stateId"]; |
| | | string remark = string.Format("{0}", Request["remark"]); |
| | | int? stateId = string.IsNullOrEmpty(stateIdStr) ? null : MyConvert.ConvertToInt32(stateIdStr); |
| | | if (string.IsNullOrEmpty(idsStr) || !stateId.HasValue) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | string[] ids = idsStr.Split(','); |
| | | |
| | | int i = -1; |
| | | int? tempId = null; |
| | | List<EC_OrderOperate> operaters = new List<EC_OrderOperate>(); |
| | | while (++i < ids.Length) |
| | | { |
| | | tempId = string.IsNullOrEmpty(ids[i]) ? null : MyConvert.ConvertToInt32(ids[i]); |
| | | if (!tempId.HasValue) |
| | | { |
| | | operaters = null; |
| | | break; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | operaters.Add(new EC_OrderOperate() |
| | | { |
| | | OrderId = tempId.Value, |
| | | Operator = CurrentUser.ShortName, |
| | | OperateType = stateId.Value, |
| | | Remark = remark |
| | | }); |
| | | } |
| | | if (null == operaters) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | Response.Write(_eC_OrderBasicBLL.UpdateOrderState(operaters.ToArray()) ? "1" : "0"); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 卖家退单 |
| | | /// </summary> |
| | | public void RetireOrderBySeller() |
| | | { |
| | | string orderidStr = Request["orderid"]; |
| | | string tovalueStr = Request["tovalue"]; |
| | | |
| | | int orderId = orderidStr.ToInt32().Value; |
| | | decimal retireMony = tovalueStr.ToDecimal2().Value; |
| | | string operatorName = CurrentUser.ShortName; |
| | | Response.Write(_eC_OrderBasicBLL.RetireOrderBySeller(orderId, retireMony, operatorName)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 请求延期 |
| | | /// </summary> |
| | | /// <param name="typeId">请求类型</param> |
| | | private void Delay(int typeId) |
| | | { |
| | | Response.Clear(); |
| | | string receiverStr = Request["receiver"]; |
| | | string orderidStr = Request["orderid"]; |
| | | string tovalueStr = Request["tovalue"]; |
| | | if (string.IsNullOrEmpty(receiverStr) || string.IsNullOrEmpty(orderidStr) || string.IsNullOrEmpty(tovalueStr)) |
| | | { |
| | | Response.Write(0); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | |
| | | int? orderid = MyConvert.ConvertToInt32(orderidStr); |
| | | int? tovalue = MyConvert.ConvertToInt32(tovalueStr); |
| | | Guid receiver = MyConvert.ConvertToGuid(receiverStr); |
| | | if (Guid.Empty == receiver || !orderid.HasValue || !tovalue.HasValue) |
| | | { |
| | | Response.Write(0); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | EC_OrderDialogue _eC_OrderDialogue = new EC_OrderDialogue(); |
| | | _eC_OrderDialogue.ReceiverId = receiver; |
| | | _eC_OrderDialogue.TargetOrder = orderid; |
| | | _eC_OrderDialogue.TargetValue = tovalue; |
| | | _eC_OrderDialogue.DialogueTypeId = typeId; |
| | | _eC_OrderDialogue.InitiatorId = CurrentUser.MemberId; |
| | | _eC_OrderDialogue.DialogueContent = string.Format("{0}", Request["dialoguecontent"]); |
| | | //开始请求 |
| | | Response.Write(_eC_OrderBasicBLL.OrderPropertyChangeRequest(_eC_OrderDialogue)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 答复清单请求 |
| | | /// </summary> |
| | | private void RequestReply() |
| | | { |
| | | Response.Clear(); |
| | | string ridStr = Request["did"]; |
| | | string isAllowStr = Request["isAllow"]; |
| | | Guid rid = MyConvert.ConvertToGuid(ridStr); |
| | | bool? isAllow = Convert.ToBoolean(isAllowStr); |
| | | if (Guid.Empty == rid || !isAllow.HasValue) |
| | | { |
| | | Response.Write(0); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | Response.Write(_eC_OrderBasicBLL.OrderPropertyChangeReply(rid, CurrentUser.MemberId, isAllow.Value)); |
| | | } |
| | | |
| | | private void ToBatchRemove() |
| | | { |
| | | string orderidStr = Request["orderid"]; |
| | | string tovalueStr = Request["tovalue"]; |
| | | |
| | | int orderId = orderidStr.ToInt32().Value; |
| | | decimal retireMony = tovalueStr.ToDecimal2().Value; |
| | | string operatorName = CurrentUser.ShortName; |
| | | Response.Write(_eC_OrderBasicBLL.RetireOrderBySeller(orderId, retireMony, operatorName)); |
| | | } |
| | | /// <summary> |
| | | /// 默认执行方法 |
| | | /// </summary> |
| | | private void Page_Load_Default() |
| | | { |
| | | UCPager1.AspNetPager.PageChanged += AspNetPager_PageChanged; |
| | | btn_Search.Click += btn_Search_Click; |
| | | // txtCommission.Value = CY.Config.WebInfo.Instance.FirmOrderAgencyFee; |
| | | List<EC_OrderDialogue> dialogues = _eC_OrderBasicBLL.SelectPropertyChangeRequest(CurrentUser.MemberId) as List<EC_OrderDialogue>; |
| | | |
| | | |
| | | if (!IsPostBack && !IsCallback) |
| | | { |
| | | Sys_DictionaryBLL _sys_DictionaryBLL = new Sys_DictionaryBLL();//字典业务逻辑操作类对象 |
| | | SysInquiry_PrintingTypeBLL _sysInquiry_PrintingTypeBLL = new SysInquiry_PrintingTypeBLL();//印刷业务类型业务逻辑操作类对象 |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | 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.selBusinessManager.Items.Insert(1, new ListItem(CurrentUser.ShortName, CurrentUser.ShortName)); |
| | | |
| | | this.txtSQBeginDate.Value = DateTime.Now.AddDays(-14).ToString("yyyy-MM-dd"); |
| | | this.txtSQEndDate.Value = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | this.selQuerenstatus.Value = "0"; |
| | | //初次数据加载 |
| | | btn_Search_Click(btn_Search, new EventArgs()); |
| | | } |
| | | } |
| | | |
| | | #region 查询 |
| | | |
| | | /// <summary> |
| | | /// 搜索按钮点击事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void btn_Search_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | |
| | | |
| | | UCPager1.AspNetPager.CurrentPageIndex = 1;//重置页数 |
| | | //再次查询 |
| | | AspNetPager_PageChanged(UCPager1.AspNetPager, new EventArgs()); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置查询参数方法 |
| | | /// </summary> |
| | | /// <param name="target">设置目标</param> |
| | | /// <param name="key">键</param> |
| | | /// <param name="value">值</param> |
| | | private static void SetParamValue(Dictionary<int, object> target, int key, object value) |
| | | { |
| | | if (string.IsNullOrEmpty(string.Format("{0}", value))) |
| | | return; |
| | | else |
| | | { |
| | | } |
| | | |
| | | if (target.ContainsKey(key)) |
| | | { |
| | | target[key] = value; |
| | | } |
| | | else |
| | | { |
| | | target.Add(key, value); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 分页事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void AspNetPager_PageChanged(object sender, EventArgs e) |
| | | { |
| | | // UCPager1.AspNetPager.PageSize = 3; |
| | | |
| | | Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination() |
| | | { |
| | | PageSize = UCPager1.AspNetPager.PageSize, |
| | | PageIndex = UCPager1.AspNetPager.CurrentPageIndex |
| | | }; |
| | | IEnumerable<OA_KaipiaoJineQueren> result = oA_KaipiaoJineQuerenBLL.SelectModelPage(pagination, CurrentUser.MemberId, this.txtSQBeginDate.Value, this.txtSQEndDate.Value, this.selBusinessManager.Value, this.txtCustormerName.Value, this.selQuerenstatus.Value ); |
| | | rptData.DataSource = result; |
| | | rptData.DataBind(); |
| | | |
| | | heji.InnerText = String.Format("{0:F2}", result.Sum(x => x.Fukuanmoney)); |
| | | heji1.InnerText = String.Format("{0:F2}", result.Sum(x => x.Hexiaomoney)); ; |
| | | |
| | | UCPager1.AspNetPager.RecordCount = pagination.RecordCount; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询参数 |
| | | /// </summary> |
| | | private Dictionary<int, object> SearchParam |
| | | { |
| | | get |
| | | { |
| | | return ViewState["SearchParam"] as Dictionary<int, object>; |
| | | } |
| | | set |
| | | { |
| | | ViewState["SearchParam"] = value; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 是否可以操作 |
| | | /// </summary> |
| | | /// <param name="keyid"></param> |
| | | /// <param name="orderState"></param> |
| | | /// <param name="opType"></param> |
| | | /// <returns></returns> |
| | | public bool IsCanOpearte(object keyidObj, object orderStateObj, object outIdObj, object opTypeObj) |
| | | { |
| | | bool isCan = false; |
| | | int keyid = (int)keyidObj; |
| | | int orderState = (int)orderStateObj; |
| | | string opType = (string)opTypeObj; |
| | | int outId = (int)outIdObj; |
| | | if (orderState == -2) |
| | | { |
| | | return false; |
| | | } |
| | | if (opType == "回访" || opType == "评价" || opType == "投诉") |
| | | { |
| | | if (orderState == 1) |
| | | { |
| | | isCan = false; |
| | | } |
| | | else |
| | | { |
| | | isCan = true; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (outId > 0) |
| | | { |
| | | return false; |
| | | } |
| | | if (orderState == 0) |
| | | { |
| | | isCan = false; |
| | | } |
| | | else if (orderState == -1) |
| | | { |
| | | if (opType != "送货") |
| | | { |
| | | isCan = false; |
| | | } |
| | | else |
| | | { |
| | | isCan = true; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (opType == "受理") |
| | | { |
| | | if (orderState == 1) |
| | | { |
| | | isCan = true; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (orderState == 1) |
| | | { |
| | | isCan = false; |
| | | } |
| | | else |
| | | { |
| | | if (opType == "撤单") |
| | | { |
| | | if (orderState == 4 || orderState == 5) |
| | | { |
| | | isCan = false; |
| | | } |
| | | else |
| | | { |
| | | isCan = true; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | isCan = true; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return isCan; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 是否已经操作 |
| | | /// </summary> |
| | | /// <param name="keyid"></param> |
| | | /// <param name="orderState"></param> |
| | | /// <param name="opType"></param> |
| | | /// <returns></returns> |
| | | public bool IsOpearted(object keyidObj, object orderStateObj, object opTypeObj) |
| | | { |
| | | int keyid = (int)keyidObj; |
| | | int orderState = (int)orderStateObj; |
| | | string opType = (string)opTypeObj; |
| | | return _eC_OrderBasicBLL.IsOpearted(keyid, orderState, opType); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 批量去除订单 |
| | | /// </summary> |
| | | public void AcceptAll2() |
| | | { |
| | | Response.Clear(); |
| | | |
| | | string ids = string.Empty; |
| | | |
| | | if (Request["ids"] != null) |
| | | { |
| | | ids = Request["ids"].ToString(); |
| | | } |
| | | |
| | | |
| | | string[] idsArray = ids.Split(','); |
| | | using (TransactionScope scope = new TransactionScope()) |
| | | { |
| | | if (idsArray != null && idsArray.Length > 0) |
| | | { |
| | | for (int i = 0; i < idsArray.Length; i++) |
| | | { |
| | | bool result = true; |
| | | EC_OrderExtend model = new EC_OrderExtend(); |
| | | model.Keyid = idsArray[i].ToInt32(); |
| | | model.QuchudingdanCreater = CurrentUser.TrueMemberId; |
| | | model.QuchudingdanTime = DateTime.Now; |
| | | model.Quchudingdan = 1; |
| | | |
| | | result = _eC_OrderBLL.OldUpdateQuchudingdan(model); |
| | | |
| | | if (!result) |
| | | { |
| | | //Page_Load_Default(); |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | |
| | | scope.Complete(); |
| | | } |
| | | |
| | | |
| | | // Page_Load_Default(); |
| | | Response.Write("1"); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 批量开票申请 |
| | | /// </summary> |
| | | public void AcceptAll3() |
| | | { |
| | | Response.Clear(); |
| | | |
| | | string ids = string.Empty; |
| | | |
| | | if (Request["ids"] != null) |
| | | { |
| | | ids = Request["ids"].ToString(); |
| | | } |
| | | |
| | | |
| | | string[] idsArray = ids.Split(','); |
| | | using (TransactionScope scope = new TransactionScope()) |
| | | { |
| | | |
| | | if (idsArray != null && idsArray.Length > 0) |
| | | { |
| | | DateTime kaipiaoshenqing = DateTime.Now; |
| | | for (int i = 0; i < idsArray.Length; i++) |
| | | { |
| | | bool result = true; |
| | | EC_OrderExtend model = new EC_OrderExtend(); |
| | | model.Keyid = idsArray[i].ToInt32(); |
| | | model.KaipiaoshenqingCreater = CurrentUser.TrueMemberId; |
| | | model.KaipiaoshenqingTime = kaipiaoshenqing; |
| | | model.Kaipiaoshenqing = 1; |
| | | |
| | | result = _eC_OrderBLL.OldUpdateKaipiaoshenqing(model); |
| | | |
| | | if (!result) |
| | | { |
| | | //Page_Load_Default(); |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | |
| | | scope.Complete(); |
| | | } |
| | | |
| | | |
| | | // Page_Load_Default(); |
| | | Response.Write("1"); |
| | | |
| | | |
| | | |
| | | } |
| | | #endregion |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | |
| | | |
| | | public partial class InvoicingWeiquerenshouru |
| | | { |
| | | |
| | | /// <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> |
| | | /// txtSQBeginDate 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtSQBeginDate; |
| | | |
| | | /// <summary> |
| | | /// txtSQEndDate 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtSQEndDate; |
| | | |
| | | /// <summary> |
| | | /// txtCustormerName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtCustormerName; |
| | | |
| | | /// <summary> |
| | | /// selQuerenstatus 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selQuerenstatus; |
| | | |
| | | /// <summary> |
| | | /// selBusinessManager 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selBusinessManager; |
| | | |
| | | /// <summary> |
| | | /// btn_Search 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Search; |
| | | |
| | | /// <summary> |
| | | /// rptData 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater rptData; |
| | | |
| | | /// <summary> |
| | | /// heji 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl heji; |
| | | |
| | | /// <summary> |
| | | /// heji1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl heji1; |
| | | |
| | | /// <summary> |
| | | /// UCPager1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.UCPager UCPager1; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepositsCustomershouruqueren.aspx.cs" Inherits="CY.WebForm.Pages.financial.DepositsCustomershouruqueren" %>
|
| | |
|
| | | <!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 runat="server">
|
| | | <title>客户预付款存款</title>
|
| | | <uc:CMSHead ID="CMSHead1" runat="server" />
|
| | | <script language="javascript" type="text/javascript">
|
| | | function ChangeThisType(obj) {
|
| | | $("#selAccountName").html("<option value=''>请选择</option>");
|
| | | $.ajax({
|
| | | url: "/Pages/financial/FirmAccountExpensesEdit.aspx",
|
| | | type: "POST",
|
| | | dataType: "html",
|
| | | data: { TypeName: $(obj).val(), DataType: "change" },
|
| | | global: false,
|
| | | cache: false,
|
| | | success: function (data) {
|
| | | var myobj = eval('(' + data + ')');
|
| | | if (myobj != null && myobj.length > 0) {
|
| | | for (var i = 0; i < myobj.length; i++) {
|
| | | var city_keyid = myobj[i].Keyid;
|
| | | var city_name = myobj[i].AccountName + "-" + myobj[i].UserName;
|
| | | var option = "";
|
| | | option = "<option value = '" + city_keyid + "'>" + city_name + "</option>";
|
| | | $(option).appendTo($("#selAccountName"));
|
| | | }
|
| | | }
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | function jisuanheji() {
|
| | |
|
| | | var cks = $("input[name='ckId']:checked");
|
| | |
|
| | | if (cks.length == 0) { $("#NoMoney").text("0"); return; } else { }
|
| | |
|
| | | var unPayedMoney = 0;
|
| | |
|
| | |
|
| | | cks.each(
|
| | | function () {
|
| | | var ckVal = $(this).val();
|
| | |
|
| | | var ckValJson = eval('(' + ckVal + ')');
|
| | |
|
| | | unPayedMoney += (parseFloat(ckValJson.fukuanmoney) - parseFloat(ckValJson.hexiaomoney));
|
| | |
|
| | |
|
| | |
|
| | | }
|
| | | );
|
| | |
|
| | | $("#NoMoney").text(unPayedMoney);
|
| | |
|
| | | }
|
| | |
|
| | | function CheckStaff() {
|
| | |
|
| | |
|
| | |
|
| | | var ids = '';
|
| | | var cks = $("input[name='ckId']:checked");
|
| | | if (cks.length == 0) {
|
| | | alertMsg('没有选中任何项!');
|
| | | return false;
|
| | | }
|
| | | else {
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | cks.each(
|
| | | function () {
|
| | | var ckVal = $(this).val();
|
| | |
|
| | | var ckValJson = eval('(' + ckVal + ')');
|
| | |
|
| | | ids = ids + ',' + ckValJson.id;
|
| | |
|
| | |
|
| | | }
|
| | | );
|
| | |
|
| | |
|
| | | $("#ids").val(ids);
|
| | | return true;
|
| | |
|
| | | }
|
| | | |
| | | </script>
|
| | | <script type="text/javascript">
|
| | | $(function () {
|
| | | |
| | |
|
| | | $('.hand').click(function () {
|
| | | jisuanheji();
|
| | | });
|
| | |
|
| | | });
|
| | | </script>
|
| | | </head>
|
| | | <body>
|
| | | <form id="form1" runat="server" class="form">
|
| | | <div id="scrollContent">
|
| | | <div class="box">
|
| | | <table class="tableStyle">
|
| | | <tr>
|
| | | <td class="ali03 ">
|
| | | 客户名称:
|
| | | </td>
|
| | | <td>
|
| | | <span id="spanCustomName" runat="server"></span>
|
| | | </td>
|
| | | <td class="ali03 ">
|
| | | 预付款余额:
|
| | | </td>
|
| | | <td>
|
| | | <span id="spanCustomMoney" runat="server" class="moneystyle"></span>
|
| | | </td>
|
| | | <td class="ali03 ">
|
| | | 发票号:
|
| | | </td>
|
| | | <td>
|
| | | <span id="spanFapiaohao" runat="server" class="moneystyle"></span>
|
| | | </td>
|
| | |
|
| | | |
| | | </tr>
|
| | | <tr>
|
| | | <td class="ali03 ">
|
| | | 发票金额:
|
| | | </td>
|
| | | <td>
|
| | | <span id="spankpmoney" runat="server" class="moneystyle"></span>
|
| | | </td>
|
| | | <td class="ali03 ">
|
| | | 已存金额:
|
| | | </td>
|
| | | <td>
|
| | | <span id="spanKehumoney" runat="server" class="moneystyle"></span>
|
| | | </td>
|
| | | <td class="ali03 ">
|
| | | 存入金额:
|
| | | </td>
|
| | | <td>
|
| | | <input runat="server" id="txtOperatMoney" type="text" class="w80px req float" maxlength="18" />
|
| | | </td>
|
| | | </tr>
|
| | | |
| | | <tr>
|
| | | <td class="ali03">
|
| | | </td>
|
| | | <td colspan="5">
|
| | | <asp:Button ID="btn_Submit" Text="确认收入" runat="server" OnClick="btn_Submit_Deposits" OnClientClick="if(CheckStaff())return true;else return false; " />
|
| | | <input type="hidden" id="ids" runat="server" />
|
| | | </td>
|
| | | </tr>
|
| | | </table>
|
| | | </div>
|
| | | <table class="tableStyle" useclick="false" usecheckbox="true" sortmode="false" id="test_table" >
|
| | | <thead>
|
| | | <tr>
|
| | | <th width="25">
|
| | | </th>
|
| | | <th width="25">
|
| | | 编号
|
| | | </th>
|
| | | <th style="text-align: center;" >
|
| | | 客户名称
|
| | | </th>
|
| | | |
| | | <th style="text-align: center;"width="70">
|
| | | 收款日期
|
| | | </th>
|
| | | |
| | | <th width="60">
|
| | | 金额
|
| | | </th>
|
| | | <th width="60">
|
| | | 已确认
|
| | | </th>
|
| | | <th width="60">
|
| | | 未确认
|
| | | </th>
|
| | | |
| | | |
| | | </tr>
|
| | | </thead>
|
| | | <tbody>
|
| | | <asp:repeater id="rptData" runat="server">
|
| | | <itemtemplate>
|
| | | <tr>
|
| | | <td> |
| | | <input type="checkbox" name='ckId' value_keyid="<%#Eval("Keyid")%>" value="{
|
| | | id:<%#Eval("Keyid")%>,
|
| | | buyerId:'<%#Eval("BuyerId")%>',
|
| | | |
| | | fukuanmoney:<%#Eval("Fukuanmoney")%>, |
| | | querenstatus:<%#Eval("Querenstatus")%>, |
| | | |
| | | hexiaomoney:<%#Eval("Hexiaomoney")%>, |
| | | |
| | | }" id='ckBox<%#Container.ItemIndex%>' class='ckBox' onclick="jisuanheji();" />
|
| | | </td>
|
| | | <td class="ItemIndex">
|
| | | <%#Container.ItemIndex +1 /*(UCPager1.PageSize *( UCPager1.PageIndex-1)+1)*/%>
|
| | | </td>
|
| | | <td style="text-align: center;">
|
| | | |
| | | <%#Eval("BuyerName")%> |
| | | |
| | | </td>
|
| | | <td style="text-align: center;">
|
| | | |
| | |
|
| | | <%#Eval("CreateTime", "{0:yyyy-MM-dd}")%>
|
| | | |
| | | </td>
|
| | | |
| | | |
| | | <td class="SumPrice">
|
| | | <%#Eval("FukuanMoney", "{0:F}")%>
|
| | | </td>
|
| | | |
| | | <td class="PayedMoney">
|
| | | <%#Eval("Hexiaomoney", "{0:F}")%>
|
| | | </td>
|
| | | <td class="UnPayedMoney">
|
| | | <%#Eval("WeiHexiaomoney","{0:F}")%>
|
| | | </td>
|
| | | |
| | | </tr>
|
| | | </itemtemplate>
|
| | | </asp:repeater>
|
| | | </tbody>
|
| | |
|
| | | <tr class="StatisticsMoney">
|
| | | <td colspan="6" class="ali03" style="text-align:left;">
|
| | | 选中合计:
|
| | | </td>
|
| | | |
| | | <td class="ali01" > |
| | | <span id="NoMoney" runat="server" ></span>
|
| | | </td>
|
| | | |
| | | </tr>
|
| | | </table>
|
| | | </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.BLL.Sys; |
| | | using CY.Infrastructure.Query; |
| | | using CY.Infrastructure.Common; |
| | | using CY.Model; |
| | | using CY.BLL.OA; |
| | | using System.Transactions; |
| | | |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | //吴辉 |
| | | //客户预付款存入 |
| | | public partial class DepositsCustomershouruqueren : BasePage |
| | | { |
| | | OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null; |
| | | Sys_DictionaryBLL _Sys_DictionaryBLL = null; |
| | | OA_AdvanceMoneyRecordBLL bll_OA_AdvanceMoneyRecordBLL = null; |
| | | OA_SubjectSetBLL _OA_SubjectSetBLL = null; |
| | | OA_FirmAccountBLL _OA_FirmAccountBLL = null; |
| | | OA_FirmAccountRecordBLL _OA_FirmAccountRecordBLL = null; |
| | | OA_KaipiaoshenqingBLL oA_KaipiaoshenqingBLL = null; |
| | | OA_KaipiaoJineQuerenBLL oA_KaipiaoJineQuerenBLL = null; |
| | | OA_AdvanceMoneyRecordBLL oA_AdvanceMoneyRecordBLL = null; |
| | | //初始化 |
| | | public DepositsCustomershouruqueren() |
| | | { |
| | | _Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); |
| | | bll_OA_AdvanceMoneyRecordBLL = new OA_AdvanceMoneyRecordBLL(); |
| | | _Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | _OA_FirmAccountBLL = new OA_FirmAccountBLL(); |
| | | _OA_FirmAccountRecordBLL = new OA_FirmAccountRecordBLL(); |
| | | _OA_SubjectSetBLL = new OA_SubjectSetBLL(); |
| | | oA_KaipiaoshenqingBLL = new OA_KaipiaoshenqingBLL(); |
| | | oA_KaipiaoJineQuerenBLL = new OA_KaipiaoJineQuerenBLL(); |
| | | oA_AdvanceMoneyRecordBLL = new OA_AdvanceMoneyRecordBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | if (!IsPostBack) |
| | | { |
| | | BindList(); |
| | | } |
| | | } |
| | | |
| | | //绑定数据 |
| | | private void BindList() |
| | | { |
| | | try |
| | | { |
| | | //科目名称 |
| | | //selSubject.DataSource = _OA_SubjectSetBLL.getAllSubject(CurrentUser.MemberId, "借"); |
| | | //selSubject.DataBind(); |
| | | //selSubject.Items.Insert(0, new ListItem("请选择", "")); |
| | | var shenqid = Request["Keyid"].ToGuid2(); |
| | | var kaipiaoshenqing = oA_KaipiaoshenqingBLL.GetModelByKeyid(shenqid); |
| | | |
| | | |
| | | //账户信息 |
| | | OA_CorporateClients m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModel(kaipiaoshenqing.BuyerId); |
| | | this.spanCustomName.InnerText = m_OA_CorporateClients.CompanyName; |
| | | this.spanCustomMoney.InnerText = "¥ " + m_OA_CorporateClients.Prepayments.ToDecimal2Yen(); |
| | | |
| | | this.spanFapiaohao.InnerText = kaipiaoshenqing.Fapiaohao; |
| | | this.spankpmoney.InnerText = "¥ " + kaipiaoshenqing.kpmoney.ToDecimal2Yen(); |
| | | this.spanKehumoney.InnerText = "¥ " + kaipiaoshenqing.Kehumoney.ToDecimal2Yen(); |
| | | |
| | | var kpmoney = kaipiaoshenqing.kpmoney.HasValue ? kaipiaoshenqing.kpmoney.Value:0; |
| | | var Kehumoney = kaipiaoshenqing.Kehumoney.HasValue ? kaipiaoshenqing.Kehumoney.Value : 0; |
| | | this.txtOperatMoney.Value = (kpmoney - Kehumoney).ToString(); |
| | | |
| | | var oA_KaipiaoJineQuerens = oA_KaipiaoJineQuerenBLL.GetModelBybuyerid(kaipiaoshenqing.BuyerId).Where(x => x.Querenstatus == 0); |
| | | rptData.DataSource = oA_KaipiaoJineQuerens; |
| | | rptData.DataBind(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | } |
| | | } |
| | | |
| | | //分页事件 |
| | | protected void AspNetPager1_PageChanged(object src, EventArgs e) |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | //提交表单 |
| | | protected void btn_Submit_Deposits(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | |
| | | var shenqid = Request["Keyid"].ToGuid2(); |
| | | var ids = this.ids.Value; |
| | | var kaipiaoshenqing = oA_KaipiaoshenqingBLL.GetModelByKeyid(shenqid); |
| | | |
| | | decimal? money = this.txtOperatMoney.Value.ToDecimal2(); |
| | | if ( money == null) |
| | | JavaScript.MessageBox("操作失败", this); |
| | | else |
| | | { |
| | | var kpmoney = kaipiaoshenqing.kpmoney.HasValue ? kaipiaoshenqing.kpmoney.Value : 0; |
| | | var Kehumoney = kaipiaoshenqing.Kehumoney.HasValue ? kaipiaoshenqing.Kehumoney.Value : 0; |
| | | if (money<=0) |
| | | { |
| | | JavaScript.MessageBox("请填写存入金额", this); |
| | | return; |
| | | } |
| | | if (money > (kpmoney -Kehumoney)) |
| | | { |
| | | JavaScript.MessageBox("本次存入金额大于客户未付款", this); |
| | | return; |
| | | } |
| | | var idssss = ids.Trim(',').Split(','); |
| | | |
| | | var idsssssint = new List<int>(); |
| | | foreach (var iddd in idssss) |
| | | { |
| | | idsssssint.Add(int.Parse(iddd)); |
| | | } |
| | | var oA_KaipiaoJineQuerens = oA_KaipiaoJineQuerenBLL.GetModelBybuyerid(kaipiaoshenqing.BuyerId).Where(x => x.Querenstatus == 0 && idsssssint.Contains(x.Keyid)); |
| | | |
| | | |
| | | var WeiHexiaomoney = oA_KaipiaoJineQuerens.Sum(x => x.WeiHexiaomoney); |
| | | |
| | | if (WeiHexiaomoney < money) |
| | | { |
| | | JavaScript.MessageBox("本次收款金额大于未确认收入!", this); |
| | | return; |
| | | } |
| | | |
| | | bool isWin = false; |
| | | using (var scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | | { |
| | | IsolationLevel = IsolationLevel.ReadCommitted, |
| | | Timeout = TransactionManager.MaximumTimeout |
| | | } |
| | | )) |
| | | { |
| | | |
| | | try |
| | | { |
| | | |
| | | |
| | | //更新确认收入 |
| | | decimal weiReceiveMoney = money.Value; |
| | | foreach (var a_KaipiaoJineQueren in oA_KaipiaoJineQuerens) |
| | | { |
| | | if (a_KaipiaoJineQueren.WeiHexiaomoney <= weiReceiveMoney) |
| | | { |
| | | |
| | | var a_KaipiaoJineQuerendetail = new OA_KaipiaoJineQuerendetail(); |
| | | a_KaipiaoJineQuerendetail.KaipiaoJineQuerenId = a_KaipiaoJineQueren.Keyid; |
| | | a_KaipiaoJineQuerendetail.KaipiaoshenqingId = shenqid; |
| | | a_KaipiaoJineQuerendetail.Hexiaomoney = a_KaipiaoJineQueren.WeiHexiaomoney; |
| | | a_KaipiaoJineQuerendetail.Creater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQuerendetail.CreateTime = DateTime.Now; |
| | | a_KaipiaoJineQuerendetail.Updater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQuerendetail.LastUpdateTime = a_KaipiaoJineQuerendetail.CreateTime; |
| | | isWin = oA_KaipiaoJineQuerenBLL.InserModeldetail(a_KaipiaoJineQuerendetail); |
| | | |
| | | weiReceiveMoney = money.Value - a_KaipiaoJineQueren.WeiHexiaomoney.Value; |
| | | a_KaipiaoJineQueren.Hexiaomoney = a_KaipiaoJineQueren.Fukuanmoney; |
| | | a_KaipiaoJineQueren.Querenstatus = 1; |
| | | isWin = oA_KaipiaoJineQuerenBLL.UpdateModel(a_KaipiaoJineQueren); |
| | | } |
| | | else |
| | | { |
| | | var a_KaipiaoJineQuerendetail = new OA_KaipiaoJineQuerendetail(); |
| | | a_KaipiaoJineQuerendetail.KaipiaoJineQuerenId = a_KaipiaoJineQueren.Keyid; |
| | | a_KaipiaoJineQuerendetail.KaipiaoshenqingId = shenqid; |
| | | a_KaipiaoJineQuerendetail.Hexiaomoney = weiReceiveMoney; |
| | | a_KaipiaoJineQuerendetail.Creater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQuerendetail.CreateTime = DateTime.Now; |
| | | a_KaipiaoJineQuerendetail.Updater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQuerendetail.LastUpdateTime = a_KaipiaoJineQuerendetail.CreateTime; |
| | | isWin = oA_KaipiaoJineQuerenBLL.InserModeldetail(a_KaipiaoJineQuerendetail); |
| | | |
| | | |
| | | a_KaipiaoJineQueren.Hexiaomoney = a_KaipiaoJineQueren.Hexiaomoney.Value + weiReceiveMoney; |
| | | |
| | | isWin = oA_KaipiaoJineQuerenBLL.UpdateModel(a_KaipiaoJineQueren); |
| | | |
| | | weiReceiveMoney = 0; |
| | | } |
| | | |
| | | |
| | | |
| | | if (weiReceiveMoney <= 0) |
| | | { |
| | | break; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | OA_CorporateClients m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModel(kaipiaoshenqing.BuyerId); |
| | | m_OA_CorporateClients.Prepayments += money; |
| | | m_OA_CorporateClients.Operator = CurrentUser.ShortName; |
| | | m_OA_CorporateClients.LastUpdateTime = DateTime.Now; |
| | | ; |
| | | |
| | | OA_AdvanceMoneyRecord m_OA_AdvanceMoneyRecord = new OA_AdvanceMoneyRecord(); |
| | | m_OA_AdvanceMoneyRecord.CustomerId = m_OA_CorporateClients.Keyid; |
| | | m_OA_AdvanceMoneyRecord.OperatTypeId = _Sys_DictionaryBLL.GetNameByMeanValue(1, "客户预付款明细类型"); |
| | | m_OA_AdvanceMoneyRecord.OperatMoney = money; |
| | | m_OA_AdvanceMoneyRecord.SubjectName = money > 0 ? "预付款收入" : "预付款收入(负)"; |
| | | m_OA_AdvanceMoneyRecord.AccountType = "收入确认"; |
| | | m_OA_AdvanceMoneyRecord.AccountName = "收入确认"; |
| | | m_OA_AdvanceMoneyRecord.LastUpdateTime = DateTime.Now; |
| | | m_OA_AdvanceMoneyRecord.Operator = CurrentUser.ShortName.ToString2(); |
| | | m_OA_AdvanceMoneyRecord.Remark = ""; |
| | | |
| | | kaipiaoshenqing.Kehumoney = Kehumoney + money.Value; |
| | | isWin = oA_KaipiaoshenqingBLL.UpdateModel(kaipiaoshenqing); |
| | | |
| | | isWin = bll_OA_CorporateClientsBLL.UpdateModel(m_OA_CorporateClients); |
| | | isWin = oA_AdvanceMoneyRecordBLL.InsertModel(m_OA_AdvanceMoneyRecord); |
| | | if (isWin) |
| | | { |
| | | BindList(); |
| | | JavaScript.MessageBox("存入成功", this, true, true); |
| | | } |
| | | else |
| | | JavaScript.MessageBox("操作失败", this); |
| | | |
| | | |
| | | scope.Complete(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | // 回滚事务 |
| | | } |
| | | finally |
| | | { |
| | | // 释放资源 |
| | | scope.Dispose(); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | JavaScript.MessageBox("操作失败", this); |
| | | } |
| | | } |
| | | |
| | | protected void btn_Query_Deposits(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | BindList(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | JavaScript.MessageBox("操作失败", this); |
| | | } |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | |
| | | |
| | | public partial class DepositsCustomershouruqueren |
| | | { |
| | | |
| | | /// <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> |
| | | /// spanCustomName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanCustomName; |
| | | |
| | | /// <summary> |
| | | /// spanCustomMoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanCustomMoney; |
| | | |
| | | /// <summary> |
| | | /// spanFapiaohao 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanFapiaohao; |
| | | |
| | | /// <summary> |
| | | /// spankpmoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spankpmoney; |
| | | |
| | | /// <summary> |
| | | /// spanKehumoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanKehumoney; |
| | | |
| | | /// <summary> |
| | | /// txtOperatMoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtOperatMoney; |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Submit; |
| | | |
| | | /// <summary> |
| | | /// ids 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden ids; |
| | | |
| | | /// <summary> |
| | | /// rptData 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater rptData; |
| | | |
| | | /// <summary> |
| | | /// NoMoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl NoMoney; |
| | | } |
| | | } |
| | |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 选择客户: |
| | | </td> |
| | | <td> |
| | | <select id='selCustormer' runat="server" keepdefaultstyle='true' datavaluefield='MemberId' datatextfield='CompanyName' onchange='custormerChange(this)' selinputhtml="True" sign="" style=" width:123px;"></select> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2"> |
| | | <span style="color:red;">选择科目:印刷业务收入,选择了客户,操作金额为正数,将会产生一条未确认收入!</span> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 摘要: |
| | | </td> |
| | | <td> |
| | |
| | | }); |
| | | } |
| | | |
| | | function custormerChange(oss) { |
| | | var selectedText = $(oss).find("option:selected").text(); |
| | | // console.log(selectedText); // 输出选中项的文本 |
| | | if ($(oss).val() != "") { |
| | | $("#txtPaymentUnit").val(selectedText); |
| | | } else { |
| | | $("#txtPaymentUnit").val(""); |
| | | } |
| | | |
| | | } |
| | | |
| | | //为Select新增过滤功能 |
| | | function SelectAddSearch() { |
| | | $("select[SelInputHtml='True']").each(function (i, v) { |
| | | $(this).unbind("blur"); |
| | | var old = $(this).html(); |
| | | var oldObject = $(this).clone(); |
| | | var sign = "selectS" + i; |
| | | $(v).attr("sign", sign); |
| | | |
| | | var inputClass = "input_" + sign; |
| | | var html = "<span style='margin-left:10px'>过滤:</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/>"; |
| | | $(v).after(html); |
| | | $("." + inputClass).blur(function () { |
| | | var nowval = $(this).val().trim(); |
| | | var output = ""; |
| | | if (nowval == "" || nowval == null) { |
| | | output = old; |
| | | } else { |
| | | output += "<option value=''>请选择</option>"; |
| | | var valueArr = new Array(); |
| | | oldObject.find("option").each(function (ii, vv) { |
| | | |
| | | var value = $.trim($(vv).attr("value")); |
| | | var text = $.trim($(vv).text()); |
| | | |
| | | if (text.indexOf(nowval) >= 0) |
| | | valueArr.push(value + "|||" + text); |
| | | }); |
| | | for (var ss in valueArr) { |
| | | var s = valueArr[ss]; |
| | | if (s.split("|||").length == 2) { |
| | | var value1 = s.split("|||")[0]; |
| | | var text1 = s.split("|||")[1]; |
| | | output += "<option value='" + value1 + "'>" + text1 + "</option>"; |
| | | } |
| | | } |
| | | } |
| | | $(v).html(output); |
| | | }); |
| | | }); |
| | | } |
| | | </script> |
| | | <script type="text/javascript"> |
| | | $(function () { |
| | | ChangeThisType("#selAcoountType"); |
| | | |
| | | |
| | | |
| | | SelectAddSearch(); |
| | | |
| | | }); |
| | | </script> |
| | | </body> |
| | |
| | | using CY.Infrastructure.Common; |
| | | using CY.BLL.OA; |
| | | using CY.BLL.Sys; |
| | | using CY.BLL; |
| | | |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | |
| | | OA_FirmAccountRecordBLL _OA_FirmAccountRecordBLL = null; |
| | | OA_FirmAccountRecord firmAccountRecord = null; |
| | | OA_FirmAccount firmAccount = null; |
| | | OA_CorporateClientsBLL _oA_CorporateClientsBLL = null; |
| | | OA_KaipiaoJineQuerenBLL _oA_KaipiaoJineQuerenBLL = null; |
| | | |
| | | public FirmAccountIncomeEdit() |
| | | { |
| | |
| | | _OA_FirmAccountRecordBLL = new OA_FirmAccountRecordBLL(); |
| | | _OA_SubjectSetBLL = new OA_SubjectSetBLL(); |
| | | firmAccountRecord = new OA_FirmAccountRecord(); |
| | | _oA_CorporateClientsBLL = new OA_CorporateClientsBLL(); |
| | | _oA_KaipiaoJineQuerenBLL = new OA_KaipiaoJineQuerenBLL(); |
| | | } |
| | | |
| | | protected void Page_Load(object sender, EventArgs e) |
| | |
| | | this.selSubject.DataSource = _OA_SubjectSetBLL.getAllSubject(CurrentUser.MemberId, "借"); |
| | | this.selSubject.DataBind(); |
| | | this.selSubject.Items.Insert(0, new ListItem("请选择", "")); |
| | | this.selSubject.Value = "1"; |
| | | |
| | | ///账户类型 |
| | | this.selAcoountType.DataSource = _Sys_DictionaryBLL.GetDataByType("账户类型"); |
| | | this.selAcoountType.DataBind(); |
| | | |
| | | IList<OA_CorporateClients> corporateClients = _oA_CorporateClientsBLL.SelectListByFirmId(CurrentUser.MemberId) as IList<OA_CorporateClients>; |
| | | if (null != corporateClients) |
| | | { |
| | | corporateClients.Where(cc => CurrentUser.MemberId.Equals(cc.MemberId) && corporateClients.Remove(cc)); |
| | | } |
| | | this.selCustormer.DataSource = corporateClients; |
| | | this.selCustormer.DataBind(); |
| | | this.selCustormer.Items.Insert(0, new ListItem("请选择", "")); |
| | | } |
| | | |
| | | protected string reLoadAccountName(string selAcoountType) |
| | |
| | | { |
| | | try |
| | | { |
| | | var oA_SubjectSet = _OA_SubjectSetBLL.getAllSubject(CurrentUser.MemberId, "借").FirstOrDefault(x=>x.Keyid == selSubject.Value.ToInt32()); |
| | | if(oA_SubjectSet!=null && oA_SubjectSet.SubjectName == "印刷业务收入") |
| | | { |
| | | if(!string.IsNullOrEmpty(this.selCustormer.Value) && txtMoney.Value.ToDecimal2() > 0) |
| | | { |
| | | //插入未确认收入 |
| | | var a_KaipiaoJineQueren = new OA_KaipiaoJineQueren(); |
| | | a_KaipiaoJineQueren.FirmId = CurrentUser.MemberId; |
| | | a_KaipiaoJineQueren.BuyerId = this.selCustormer.Value.ToGuid2(); |
| | | var corporateClients = _oA_CorporateClientsBLL.GetModel(a_KaipiaoJineQueren.BuyerId); |
| | | { |
| | | if (corporateClients != null) |
| | | { |
| | | a_KaipiaoJineQueren.BusinessManagerId = corporateClients.BusinessManagerId; |
| | | } |
| | | } |
| | | |
| | | a_KaipiaoJineQueren.Fukuanmoney = txtMoney.Value.ToDecimal2(); |
| | | a_KaipiaoJineQueren.Hexiaomoney = 0; |
| | | a_KaipiaoJineQueren.OperationalMatters = txtOperationalMatters.Value; |
| | | a_KaipiaoJineQueren.Querenstatus = 0; |
| | | a_KaipiaoJineQueren.Creater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQueren.CreateTime = DateTime.Now; |
| | | a_KaipiaoJineQueren.Updater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQueren.LastUpdateTime = a_KaipiaoJineQueren.CreateTime; |
| | | |
| | | var a = _oA_KaipiaoJineQuerenBLL.InsertModel(a_KaipiaoJineQueren); |
| | | } |
| | | } |
| | | |
| | | |
| | | firmAccount = _OA_FirmAccountBLL.getSingleSubject(Request["selAccountName"].ToInt32()); |
| | | |
| | | firmAccountRecord.AccountId = Request["selAccountName"].ToInt32(); |
| | |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能会导致不正确的行为,并且如果 |
| | | // 重新生成代码,这些更改将会丢失。 |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.financial { |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | |
| | | |
| | | public partial class FirmAccountIncomeEdit { |
| | | public partial class FirmAccountIncomeEdit |
| | | { |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtPaymentUnit; |
| | | |
| | | /// <summary> |
| | | /// selCustormer 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selCustormer; |
| | | |
| | | /// <summary> |
| | | /// txtOperationalMatters 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | |
| | | <script type="text/javascript"> |
| | | ///添加 |
| | | function addModel() { |
| | | top.Dialog.open({ URL: "/Pages/financial/FirmAccountIncomeEdit.aspx?Keyid='0'", Title: "新增收入记录", Width: 420, Height: 230 }); |
| | | top.Dialog.open({ URL: "/Pages/financial/FirmAccountIncomeEdit.aspx?Keyid='0'", Title: "新增收入记录", Width: 600, Height: 600 }); |
| | | } |
| | | //查看 |
| | | function onView(keyid) { |
| | |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能会导致不正确的行为,并且如果 |
| | | // 重新生成代码,这些更改将会丢失。 |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.financial { |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | |
| | | |
| | | public partial class FirmAccountIncomeList { |
| | | public partial class FirmAccountIncomeList |
| | | { |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | |
| | | |
| | | if (this.txtReceiveMoney.Value.ToDecimal2() < xuanzhongjine) |
| | | { |
| | | JavaScript.MessageBox("本次收款金额萧宇选中订单未付款!", this); |
| | | JavaScript.MessageBox("本次收款金额小于选中订单未付款!", this); |
| | | return; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InvoicingShouruqueren.aspx.cs" Inherits="CY.WebForm.Pages.financial.InvoicingShouruqueren" %>
|
| | |
|
| | | <!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 runat="server">
|
| | | <title>订单收款</title>
|
| | | <uc:CMSHead ID="CMSHead1" runat="server" />
|
| | | <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" />
|
| | | <script type="text/javascript">
|
| | | var accountsTypes = false;
|
| | | var accounts = false;
|
| | |
|
| | | var keyDownHook = new KeyBehaviorHook('keydown');
|
| | | keyDownHook.Regist(window.Keys.S, "ClickElement('btnSubmit')", window.WithKey.Ctrl); //Ctrl+s 保存
|
| | | keyDownHook.Regist(window.Keys.Enter, "ClickElement('btnSubmit')", window.WithKey.Ctrl); //Ctrl+Enter 保存
|
| | | keyDownHook.Regist(window.Keys.R, "ClickElement('btnReset')", window.WithKey.Ctrl); //Ctrl+R 重置(Reset)
|
| | | keyDownHook.Regist(window.Keys.Q, "ClickElement('btnQuit')", window.WithKey.Ctrl); //Ctrl+Q 退出(Quit)
|
| | |
|
| | | function jisuanheji() {
|
| | | |
| | | var cks = $("input[name='ckId']:checked");
|
| | | |
| | | if (cks.length == 0) { $("#NoMoney").text("0"); return; } else { }
|
| | | |
| | | var unPayedMoney = 0;
|
| | |
|
| | |
|
| | | cks.each(
|
| | | function () {
|
| | | var ckVal = $(this).val();
|
| | | |
| | | var ckValJson = eval('(' + ckVal + ')');
|
| | |
|
| | | unPayedMoney += (parseFloat(ckValJson.fukuanmoney) - parseFloat(ckValJson.hexiaomoney)) ;
|
| | | |
| | |
|
| | |
|
| | | }
|
| | | );
|
| | |
|
| | | $("#NoMoney").text(unPayedMoney);
|
| | | |
| | | }
|
| | |
|
| | | $(function () {
|
| | | |
| | | $('.hand').click(function () {
|
| | | jisuanheji();
|
| | | });
|
| | |
|
| | |
|
| | | keyDownHook.Binding();
|
| | | if ('1' == document.getElementById('txtResult').value) {
|
| | | CloseOpenWindow(true)
|
| | | return;
|
| | | } else;
|
| | | //document.getElementById('txtReceiveDate').value = new Date().ToString("yyyy-MM-dd HH:mm");
|
| | | // document.getElementById('txtReceiveMoney').value = document.getElementById('txtUnPayedMoney').value;
|
| | | //document.getElementById('txtReceiveMoney').focus();
|
| | | //d accountsTypes = '<%=Request.RequestContext.RouteData.DataTokens["accountsTypes"] %>';
|
| | | //d accounts = '<%=Request.RequestContext.RouteData.DataTokens["accounts"] %>';
|
| | |
|
| | |
|
| | | //try {
|
| | |
|
| | | // accountsTypes = eval(accountsTypes);
|
| | | // accounts = eval(accounts)[0];
|
| | | //} catch (e) {
|
| | | // accountsTypes = 'object' == typeof (accountsTypes) ? accountsTypes : [];
|
| | | // accounts = [];
|
| | | //}
|
| | |
|
| | | //LoadAccountType();
|
| | | });
|
| | |
|
| | | function QuannbuCheckedChanging(sel) {
|
| | | if (sel.value == "0") {
|
| | | $("#txtReceiveMoney").prop('readonly', true);
|
| | | $("#txtReceiveMoney").val($("#hidReceiveMoney").val());
|
| | | $("#test_table").hide();
|
| | | } else if (sel.value == "1")
|
| | | {
|
| | | $("#txtReceiveMoney").prop('readonly', false);
|
| | |
|
| | | $("#test_table").show();
|
| | | }
|
| | | }
|
| | | function CheckStaff() {
|
| | | |
| | |
|
| | | |
| | | var ids = '';
|
| | | var cks = $("input[name='ckId']:checked");
|
| | | if (cks.length == 0) {
|
| | | alertMsg('没有选中任何项!');
|
| | | return false;
|
| | | }
|
| | | else {
|
| | | }
|
| | | |
| | | |
| | | |
| | |
|
| | | |
| | |
|
| | | cks.each(
|
| | | function () {
|
| | | var ckVal = $(this).val();
|
| | |
|
| | | var ckValJson = eval('(' + ckVal + ')');
|
| | | |
| | | ids = ids + ',' + ckValJson.id;
|
| | | |
| | |
|
| | | }
|
| | | );
|
| | |
|
| | |
|
| | | $("#ids").val(ids);
|
| | | return true;
|
| | | |
| | | }
|
| | |
|
| | | function CheckedChanging(sel, name) {
|
| | |
|
| | | var td_toaccount = document.getElementById('td_toaccount');
|
| | | td_toaccount.parentNode.style.display = td_toaccount.style.display = name ? '' : 'none';
|
| | |
|
| | | if (!name) { return; }
|
| | | var currentAccounts = accounts[name];
|
| | | var selAccounts = document.getElementById('selAccounts');
|
| | | selAccounts.options.length = 0;
|
| | | var i = -1;
|
| | | while (++i < currentAccounts.length) {
|
| | | var optionItem = document.createElement('option');
|
| | | optionItem.value = currentAccounts[i].Keyid;
|
| | | optionItem.innerHTML = currentAccounts[i].AccountName + '-' + currentAccounts[i].UserName;
|
| | | selAccounts.appendChild(optionItem);
|
| | | }
|
| | | };
|
| | |
|
| | | function LoadAccountType() {
|
| | | var td_receiveWay = document.getElementById('td_receiveWay');
|
| | | td_receiveWay.parentNode.style.display = td_receiveWay.style.display = '<%=Request["isprepareway"] %>';
|
| | | if (td_receiveWay.style.display) { return; } else;
|
| | | var thtml = '';
|
| | | var i = -1;
|
| | | while (++i < accountsTypes.length) {
|
| | | thtml += ("<input type='radio' name='rdoReceiveWay' id='rdoReceiveWay" + accountsTypes[i].Keyid + "' value='"
|
| | | + accountsTypes[i].Keyid + "' onclick=\"CheckedChanging(this,'" + accountsTypes[i].Name + "')\" /><label for='rdoReceiveWay" + accountsTypes[i].Keyid + "'>" + accountsTypes[i].Name + "</label>  ");
|
| | | }
|
| | | document.getElementById('spn_receiveWay').innerHTML = thtml;
|
| | |
|
| | | }
|
| | | /*
|
| | | 验证输入价格
|
| | | */
|
| | | function ValidateInputPrice(txt) {
|
| | | if (!ValidateDecimal(txt)) return; else;
|
| | | try {
|
| | | var inputPrice = parseFloat(txt.value);
|
| | | var unPayed = parseFloat(document.getElementById('hidReceiveMoney').value);
|
| | | txt.value = isNaN(inputPrice) || isNaN(unPayed) ? 0 : txt.value;
|
| | | if (inputPrice > unPayed) { alertMsg(' 本次收款金额大于订单未付款!<br/>为了您的账务正确性请重新复查!'); }
|
| | |
|
| | | } catch (e) {
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | | </script>
|
| | | </head>
|
| | | <body style='margin: 0; padding: 0;'>
|
| | | <form id="form1" runat="server" onsubmit="if(false)return false;">
|
| | | <input type="hidden" id='txtResult' value='<%=Request.RequestContext.RouteData.DataTokens["IsWin"] %>'>
|
| | | <table class="table2" width="100%">
|
| | | |
| | | <tr>
|
| | | <td colspan='3' class='col_third'>
|
| | | 客户名称:
|
| | | <input id='txtBuyerName' runat="server" style='width: 220px;' readonly="readonly" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td colspan='3' class='col_third'>
|
| | | 发票号:
|
| | | <input id='txtFapiaohao' runat="server" style='width: 220px;' readonly="readonly" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td colspan='3' class='col_third'>
|
| | | 应收款:
|
| | | <input id='txtSumMoney' runat="server" style='width: 120px;' onblur='ValidateInputPrice(this)' readonly="readonly" />
|
| | | <input type="hidden" runat="server" id='hidReceiveMoney' />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td colspan='3' class='col_third'>
|
| | | 收款金额:
|
| | | <input id='txtReceiveMoney' runat="server" maxlength='16' style='width: 120px;' onblur='ValidateInputPrice(this)' />
|
| | | </td>
|
| | | </tr>
|
| | | |
| | |
|
| | | |
| | | |
| | | |
| | | <tr>
|
| | | <td class="contentLeft" colspan='3'>
|
| | |      <%--<input type="button" value="确认收款" runat="server" id='btnSubmit' />--%>
|
| | |
|
| | | <asp:Button ID="btn_Submit" Text="确认收入" runat="server" OnClick="btn_Submit_form" OnClientClick="if(CheckStaff())return true;else return false; " />
|
| | | <input type="hidden" id="ids" runat="server" />
|
| | | </td>
|
| | | </tr>
|
| | | </table>
|
| | |
|
| | | <table class="tableStyle" useclick="false" usecheckbox="true" sortmode="false" id="test_table" >
|
| | | <thead>
|
| | | <tr>
|
| | | <th width="25">
|
| | | </th>
|
| | | <th width="25">
|
| | | 编号
|
| | | </th>
|
| | | <th style="text-align: center;" >
|
| | | 客户名称
|
| | | </th>
|
| | | |
| | | <th style="text-align: center;"width="70">
|
| | | 收款日期
|
| | | </th>
|
| | | |
| | | <th width="60">
|
| | | 金额
|
| | | </th>
|
| | | <th width="60">
|
| | | 已确认
|
| | | </th>
|
| | | <th width="60">
|
| | | 未确认
|
| | | </th>
|
| | | |
| | | |
| | | </tr>
|
| | | </thead>
|
| | | <tbody>
|
| | | <asp:repeater id="rptData" runat="server">
|
| | | <itemtemplate>
|
| | | <tr>
|
| | | <td> |
| | | <input type="checkbox" name='ckId' value_keyid="<%#Eval("Keyid")%>" value="{
|
| | | id:<%#Eval("Keyid")%>,
|
| | | buyerId:'<%#Eval("BuyerId")%>',
|
| | | |
| | | fukuanmoney:<%#Eval("Fukuanmoney")%>, |
| | | querenstatus:<%#Eval("Querenstatus")%>, |
| | | |
| | | hexiaomoney:<%#Eval("Hexiaomoney")%>, |
| | | |
| | | }" id='ckBox<%#Container.ItemIndex%>' class='ckBox' onclick="jisuanheji();" />
|
| | | </td>
|
| | | <td class="ItemIndex">
|
| | | <%#Container.ItemIndex +1 /*(UCPager1.PageSize *( UCPager1.PageIndex-1)+1)*/%>
|
| | | </td>
|
| | | <td style="text-align: center;">
|
| | | |
| | | <%#Eval("BuyerName")%> |
| | | |
| | | </td>
|
| | | <td style="text-align: center;">
|
| | | |
| | |
|
| | | <%#Eval("CreateTime", "{0:yyyy-MM-dd}")%>
|
| | | |
| | | </td>
|
| | | |
| | | |
| | | <td class="SumPrice">
|
| | | <%#Eval("FukuanMoney", "{0:F}")%>
|
| | | </td>
|
| | | |
| | | <td class="PayedMoney">
|
| | | <%#Eval("Hexiaomoney", "{0:F}")%>
|
| | | </td>
|
| | | <td class="UnPayedMoney">
|
| | | <%#Eval("WeiHexiaomoney","{0:F}")%>
|
| | | </td>
|
| | | |
| | | </tr>
|
| | | </itemtemplate>
|
| | | </asp:repeater>
|
| | | </tbody>
|
| | |
|
| | | <tr class="StatisticsMoney">
|
| | | <td colspan="6" class="ali03" style="text-align:left;">
|
| | | 选中合计:
|
| | | </td>
|
| | | |
| | | <td class="ali01" > |
| | | <span id="NoMoney" runat="server" ></span>
|
| | | </td>
|
| | | |
| | | </tr>
|
| | | </table>
|
| | | </form>
|
| | | </body>
|
| | | </html> |
New file |
| | |
| | | /** |
| | | * OrderMoneyReceive.aspx.cs |
| | | * |
| | | * 功 能: 订单收款 |
| | | * 类 名: OrderMoneyReceive |
| | | * |
| | | * Ver 变更日期 负责人 变更内容 |
| | | * ─────────────────────────────────── |
| | | * V0.01 2013-5-28 13:44 吴崎均 初版 |
| | | * |
| | | */ |
| | | 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.OA; |
| | | using CY.BLL.Sys; |
| | | using System.Text; |
| | | using CY.BLL; |
| | | using System.Transactions; |
| | | |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | public partial class InvoicingShouruqueren : BasePage |
| | | { |
| | | private EC_OrderBasicBLL _eC_OrderBasicBLL = null; |
| | | |
| | | private OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null; |
| | | OA_KaipiaoshenqingBLL oA_KaipiaoshenqingBLL = null; |
| | | OA_KaipiaoJineQuerenBLL oA_KaipiaoJineQuerenBLL = null; |
| | | |
| | | /// <summary> |
| | | /// 初始化构造 |
| | | /// </summary> |
| | | public InvoicingShouruqueren() |
| | | { |
| | | bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); |
| | | oA_KaipiaoshenqingBLL = new OA_KaipiaoshenqingBLL(); |
| | | _eC_OrderBasicBLL = new EC_OrderBasicBLL(); |
| | | oA_KaipiaoJineQuerenBLL = new OA_KaipiaoJineQuerenBLL(); |
| | | } |
| | | /// <summary> |
| | | /// 界面加载事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | //btnSubmit.ServerClick += new EventHandler(btnSubmit_ServerClick); |
| | | if (!IsPostBack) |
| | | { |
| | | LoadOrder(); |
| | | } |
| | | |
| | | if (IsPostBack || IsCallback) |
| | | return; |
| | | InitPage(); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 提交按钮点击事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | protected void btn_Submit_form(object sender, EventArgs e) |
| | | { |
| | | if (string.IsNullOrEmpty(this.txtReceiveMoney.Value) ) |
| | | { |
| | | JavaScript.MessageBox("请填写收款金额!", this); |
| | | return; |
| | | } |
| | | |
| | | if (this.txtReceiveMoney.Value.ToDecimal2() <= 0 ) |
| | | { |
| | | JavaScript.MessageBox("请填写收款金额!", this); |
| | | return; |
| | | } |
| | | |
| | | if (this.txtReceiveMoney.Value.ToDecimal2()> this.hidReceiveMoney.Value.ToDecimal2()) |
| | | { |
| | | JavaScript.MessageBox("本次收款金额大于订单未付款!", this); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | var id = Request["id"]; |
| | | |
| | | |
| | | var ids = this.ids.Value; |
| | | |
| | | bool isWin = false; |
| | | |
| | | |
| | | var idssss = ids.Trim(',').Split(','); |
| | | |
| | | var idsssssint = new List<int>(); |
| | | foreach(var iddd in idssss) |
| | | { |
| | | idsssssint.Add(int.Parse(iddd)); |
| | | } |
| | | var a_Kaipiaoshenqing = oA_KaipiaoshenqingBLL.GetModelByKeyid(id.ToGuid2()); |
| | | var oA_KaipiaoJineQuerens = oA_KaipiaoJineQuerenBLL.GetModelBybuyerid(a_Kaipiaoshenqing.BuyerId).Where(x => x.Querenstatus == 0 && idsssssint.Contains(x.Keyid)); |
| | | |
| | | var ReceiveMoney = this.txtReceiveMoney.Value.ToDecimal2(); |
| | | var WeiHexiaomoney = oA_KaipiaoJineQuerens.Sum(x=>x.WeiHexiaomoney); |
| | | |
| | | if (WeiHexiaomoney< ReceiveMoney) |
| | | { |
| | | JavaScript.MessageBox("本次收款金额大于未确认收入!", this); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | Dictionary<int, object> searchParam = new Dictionary<int, object>(); |
| | | |
| | | SetParamValue(searchParam, 1, CurrentUser.MemberId); |
| | | SetParamValue(searchParam, 2, ""); |
| | | SetParamValue(searchParam, 3, ""); |
| | | SetParamValue(searchParam, 4, ""); |
| | | SetParamValue(searchParam, 5, ""); |
| | | SetParamValue(searchParam, 6, ""); |
| | | SetParamValue(searchParam, 7, ""); |
| | | SetParamValue(searchParam, 8, ""); |
| | | SetParamValue(searchParam, 9, ""); |
| | | SetParamValue(searchParam, 10, ""); |
| | | SetParamValue(searchParam, 11, ""); |
| | | SetParamValue(searchParam, 12, ""); |
| | | SetParamValue(searchParam, 13, ""); |
| | | SetParamValue(searchParam, 14, ""); |
| | | SetParamValue(searchParam, 15, ""); |
| | | SetParamValue(searchParam, 16, ""); |
| | | SetParamValue(searchParam, 18, 0); |
| | | SetParamValue(searchParam, 19, CurrentUser.TrueMemberId); |
| | | SetParamValue(searchParam, 20, CurrentUser.StaffId); |
| | | SetParamValue(searchParam, 21, CurrentUser.TrueName); |
| | | SetParamValue(searchParam, 22, ""); |
| | | SetParamValue(searchParam, 23, ""); |
| | | SetParamValue(searchParam, 24, ""); |
| | | SetParamValue(searchParam, 25, ""); |
| | | SetParamValue(searchParam, 26, id.ToGuid2()); |
| | | SearchParam = searchParam; |
| | | |
| | | |
| | | |
| | | Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination() |
| | | { |
| | | PageSize = 1000,// UCPager1.AspNetPager.PageSize, |
| | | PageIndex = 1// UCPager1.AspNetPager.CurrentPageIndex |
| | | }; |
| | | var _orderBasicmodes = _eC_OrderBasicBLL.SelectModelPage_Seller(pagination, SearchParam); |
| | | using (var scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | | { |
| | | IsolationLevel = IsolationLevel.ReadCommitted, |
| | | Timeout = TransactionManager.MaximumTimeout |
| | | } |
| | | )) |
| | | { |
| | | |
| | | try |
| | | { |
| | | |
| | | |
| | | if (string.IsNullOrEmpty(id) ) |
| | | { |
| | | JavaScript.MessageBox("传入参数错误!", this); |
| | | return; |
| | | } |
| | | if (null == _orderBasicmodes) |
| | | { |
| | | JavaScript.MessageBox("订单不存在或已删除!", this); |
| | | return; |
| | | } |
| | | //更新确认收入 |
| | | decimal weiReceiveMoney = ReceiveMoney.Value; |
| | | foreach (var a_KaipiaoJineQueren in oA_KaipiaoJineQuerens) |
| | | { |
| | | if(a_KaipiaoJineQueren.WeiHexiaomoney <= weiReceiveMoney) |
| | | { |
| | | |
| | | var a_KaipiaoJineQuerendetail = new OA_KaipiaoJineQuerendetail(); |
| | | a_KaipiaoJineQuerendetail.KaipiaoJineQuerenId = a_KaipiaoJineQueren.Keyid; |
| | | a_KaipiaoJineQuerendetail.KaipiaoshenqingId = id.ToGuid2(); |
| | | a_KaipiaoJineQuerendetail.Hexiaomoney = a_KaipiaoJineQueren.WeiHexiaomoney; |
| | | a_KaipiaoJineQuerendetail.Creater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQuerendetail.CreateTime = DateTime.Now; |
| | | a_KaipiaoJineQuerendetail.Updater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQuerendetail.LastUpdateTime = a_KaipiaoJineQuerendetail.CreateTime; |
| | | isWin = oA_KaipiaoJineQuerenBLL.InserModeldetail(a_KaipiaoJineQuerendetail); |
| | | |
| | | weiReceiveMoney = ReceiveMoney.Value - a_KaipiaoJineQueren.WeiHexiaomoney.Value; |
| | | a_KaipiaoJineQueren.Hexiaomoney = a_KaipiaoJineQueren.Fukuanmoney; |
| | | a_KaipiaoJineQueren.Querenstatus = 1; |
| | | isWin = oA_KaipiaoJineQuerenBLL.UpdateModel(a_KaipiaoJineQueren); |
| | | } |
| | | else |
| | | { |
| | | var a_KaipiaoJineQuerendetail = new OA_KaipiaoJineQuerendetail(); |
| | | a_KaipiaoJineQuerendetail.KaipiaoJineQuerenId = a_KaipiaoJineQueren.Keyid; |
| | | a_KaipiaoJineQuerendetail.KaipiaoshenqingId = id.ToGuid2(); |
| | | a_KaipiaoJineQuerendetail.Hexiaomoney = weiReceiveMoney; |
| | | a_KaipiaoJineQuerendetail.Creater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQuerendetail.CreateTime = DateTime.Now; |
| | | a_KaipiaoJineQuerendetail.Updater = CurrentUser.ShortName; |
| | | a_KaipiaoJineQuerendetail.LastUpdateTime = a_KaipiaoJineQuerendetail.CreateTime; |
| | | isWin = oA_KaipiaoJineQuerenBLL.InserModeldetail(a_KaipiaoJineQuerendetail); |
| | | |
| | | |
| | | a_KaipiaoJineQueren.Hexiaomoney = a_KaipiaoJineQueren.Hexiaomoney.Value + weiReceiveMoney; |
| | | |
| | | isWin = oA_KaipiaoJineQuerenBLL.UpdateModel(a_KaipiaoJineQueren); |
| | | |
| | | weiReceiveMoney = 0; |
| | | } |
| | | |
| | | |
| | | |
| | | if (weiReceiveMoney <= 0) |
| | | { |
| | | break; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | weiReceiveMoney = ReceiveMoney.Value; |
| | | foreach (var _orderBasic in _orderBasicmodes) |
| | | { |
| | | if (_orderBasic.UnPayedMoney <= 0) |
| | | { |
| | | continue; |
| | | } |
| | | decimal UnPayedMoney = _orderBasic.UnPayedMoney; |
| | | if (_orderBasic.UnPayedMoney > weiReceiveMoney) |
| | | { |
| | | UnPayedMoney = weiReceiveMoney; |
| | | weiReceiveMoney = 0; |
| | | } |
| | | else |
| | | { |
| | | weiReceiveMoney = weiReceiveMoney - _orderBasic.UnPayedMoney; |
| | | } |
| | | |
| | | |
| | | |
| | | isWin = ToAccount(_orderBasic.Keyid.Value, _orderBasic.BuyerName, UnPayedMoney); |
| | | if (!isWin) |
| | | { |
| | | JavaScript.MessageBox(_orderBasic.SellerOrderId + "收款失败!", this); |
| | | return; |
| | | //break; |
| | | } |
| | | if (weiReceiveMoney<=0) |
| | | { |
| | | break; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | scope.Complete(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | // 回滚事务 |
| | | } |
| | | finally |
| | | { |
| | | // 释放资源 |
| | | scope.Dispose(); |
| | | } |
| | | } |
| | | |
| | | |
| | | if (isWin) |
| | | { |
| | | JavaScript.MessageBox("操作成功", this); |
| | | |
| | | JavaScript.RefreshDIVOpener(this); |
| | | } |
| | | else |
| | | { |
| | | JavaScript.MessageBox("操作失败", this); |
| | | } |
| | | |
| | | |
| | | |
| | | //JavaScript.MessageBox(isWin ? "收款成功!" : "收款失败!", this, "top.frmright.ReLoad();top.Dialog.close();"); |
| | | //Request.RequestContext.RouteData.DataTokens.Add("IsWin", isWin ? "1" : ""); |
| | | //if (!isWin) |
| | | // InitPage(); |
| | | //else |
| | | // ; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载页面数据 |
| | | /// </summary> |
| | | private void InitPage() |
| | | { |
| | | try |
| | | { |
| | | Sys_DictionaryBLL _Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | OA_SubjectSetBLL _OA_SubjectSetBLL = new OA_SubjectSetBLL(); |
| | | OA_FirmAccountBLL oA_FirmAccountBLL = new OA_FirmAccountBLL(); |
| | | |
| | | |
| | | |
| | | int i = -1; |
| | | //账户类型 |
| | | List<Sys_Dictionary> accountsType = _Sys_DictionaryBLL.GetDataByType("账户类型") as List<Sys_Dictionary>; |
| | | Request.RequestContext.RouteData.DataTokens.Add("accountsTypes", null == accountsType || accountsType.Count == 0 ? "[]" : JsonHelper.GetJsonStringByObject(accountsType)); |
| | | |
| | | List<OA_FirmAccount> firmAccounts = oA_FirmAccountBLL.getAllSubject(CurrentUser.MemberId, "") as List<OA_FirmAccount>; |
| | | |
| | | const string ACCOUNTSJSONKEY = "accounts"; |
| | | if (null == firmAccounts) |
| | | { |
| | | Request.RequestContext.RouteData.DataTokens.Add(ACCOUNTSJSONKEY, "[]"); |
| | | return; |
| | | } |
| | | |
| | | IEnumerable<IGrouping<string, OA_FirmAccount>> groupings = firmAccounts.GroupBy(fa => fa.AccountType); |
| | | StringBuilder builder = new StringBuilder(); |
| | | |
| | | foreach (IGrouping<string, OA_FirmAccount> groupitem in groupings) |
| | | { |
| | | OA_FirmAccount[] items = groupitem.ToArray(); |
| | | builder.AppendFormat("{0}\"{2}\":{3}{1}", ",", "", groupitem.Key, JsonHelper.GetJsonStringByObject(items)); |
| | | } |
| | | builder.Append("}]"); |
| | | builder.Replace(",", "[{", 0, 1); |
| | | |
| | | Request.RequestContext.RouteData.DataTokens.Add(ACCOUNTSJSONKEY, null == firmAccounts ? "[]" : builder.ToString()); |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载订单 |
| | | /// </summary> |
| | | private void LoadOrder() |
| | | { |
| | | var id = Request["id"]; |
| | | |
| | | var a_Kaipiaoshenqing = oA_KaipiaoshenqingBLL.GetModelByKeyid(id.ToGuid2()); |
| | | if (a_Kaipiaoshenqing != null) |
| | | { |
| | | var corporateClients = bll_OA_CorporateClientsBLL.GetModel(a_Kaipiaoshenqing.BuyerId); |
| | | if (corporateClients!=null) |
| | | { |
| | | this.txtBuyerName.Value = corporateClients.CompanyName; |
| | | } |
| | | this.txtFapiaohao.Value = a_Kaipiaoshenqing.Fapiaohao; |
| | | } |
| | | |
| | | |
| | | |
| | | Dictionary<int, object> searchParam = new Dictionary<int, object>(); |
| | | |
| | | SetParamValue(searchParam, 1, CurrentUser.MemberId); |
| | | SetParamValue(searchParam, 2, ""); |
| | | SetParamValue(searchParam, 3, ""); |
| | | SetParamValue(searchParam, 4, ""); |
| | | SetParamValue(searchParam, 5, ""); |
| | | SetParamValue(searchParam, 6, ""); |
| | | SetParamValue(searchParam, 7, ""); |
| | | SetParamValue(searchParam, 8, ""); |
| | | SetParamValue(searchParam, 9, ""); |
| | | SetParamValue(searchParam, 10, ""); |
| | | SetParamValue(searchParam, 11, ""); |
| | | SetParamValue(searchParam, 12, ""); |
| | | SetParamValue(searchParam, 13, ""); |
| | | SetParamValue(searchParam, 14, ""); |
| | | SetParamValue(searchParam, 15, ""); |
| | | SetParamValue(searchParam, 16, ""); |
| | | SetParamValue(searchParam, 18, 0); |
| | | SetParamValue(searchParam, 19, CurrentUser.TrueMemberId); |
| | | SetParamValue(searchParam, 20, CurrentUser.StaffId); |
| | | SetParamValue(searchParam, 21, CurrentUser.TrueName); |
| | | SetParamValue(searchParam, 22, ""); |
| | | SetParamValue(searchParam, 23, ""); |
| | | SetParamValue(searchParam, 24, ""); |
| | | SetParamValue(searchParam, 25, ""); |
| | | SetParamValue(searchParam, 26, id.ToGuid2()); |
| | | SearchParam = searchParam; |
| | | |
| | | |
| | | |
| | | Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination() |
| | | { |
| | | PageSize = 1000, |
| | | PageIndex = 1 |
| | | }; |
| | | var _orderBasicmodes = _eC_OrderBasicBLL.SelectModelPage_Seller(pagination, SearchParam); |
| | | |
| | | |
| | | |
| | | |
| | | decimal shoukuanmoney = 0; |
| | | decimal sumMoney = 0; |
| | | if (id == null || id.Length==0) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | try |
| | | { |
| | | |
| | | foreach (var _orderBasicmode in _orderBasicmodes) |
| | | { |
| | | |
| | | |
| | | sumMoney += (_orderBasicmode.SumPrice.HasValue? _orderBasicmode.SumPrice.Value:0); |
| | | shoukuanmoney += _orderBasicmode.UnPayedMoney; |
| | | |
| | | } |
| | | this.txtReceiveMoney.Value = String.Format("{0:F}", shoukuanmoney); |
| | | this.txtSumMoney.Value = String.Format("{0:F}", sumMoney); |
| | | this.hidReceiveMoney.Value = String.Format("{0:F}", shoukuanmoney); |
| | | this.NoMoney.InnerText = "0"; |
| | | var oA_KaipiaoJineQuerens = oA_KaipiaoJineQuerenBLL.GetModelBybuyerid(a_Kaipiaoshenqing.BuyerId).Where(x => x.Querenstatus == 0); |
| | | rptData.DataSource = oA_KaipiaoJineQuerens; |
| | | rptData.DataBind(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | JavaScript.MessageBox("订单不存在!", this); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 收款到账户 |
| | | /// </summary> |
| | | /// <param name="orderId"></param> |
| | | /// <param name="buyerName"></param> |
| | | /// <returns></returns> |
| | | private bool ToAccount(int orderId, string buyerName,decimal UnPayedMoney) |
| | | { |
| | | OA_FirmAccountRecord oA_FirmAccountRecord = new Model.OA_FirmAccountRecord(); |
| | | oA_FirmAccountRecord.Money = UnPayedMoney; |
| | | //oA_FirmAccountRecord.LastUpdateTime = MyConvert.ConvertToDateTime(txtReceiveDate.Value); |
| | | if (!oA_FirmAccountRecord.Money.HasValue || 0 > oA_FirmAccountRecord.Money.Value) |
| | | { |
| | | return false; |
| | | } |
| | | //if (!oA_FirmAccountRecord.LastUpdateTime.HasValue) |
| | | //{ |
| | | // return false; |
| | | //} |
| | | |
| | | oA_FirmAccountRecord.Operator = CurrentUser.ShortName; |
| | | // oA_FirmAccountRecord.Remark = txtRemark.Value; |
| | | oA_FirmAccountRecord.PaymentUnit = buyerName; |
| | | // oA_FirmAccountRecord.SubjectId = MyConvert.ConvertToInt32(selSubjects.Value); |
| | | // oA_FirmAccountRecord.AccountId = MyConvert.ConvertToInt32("0".Equals(Request["rdoReceiveWay"]) ? "0" : Request["selAccounts"]); |
| | | // if (!oA_FirmAccountRecord.AccountId.HasValue || 0 == oA_FirmAccountRecord.AccountId.Value) |
| | | // return false; |
| | | return _eC_OrderBasicBLL.ReceiveMoneyToQueren(orderId, oA_FirmAccountRecord); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 使用预付款(付款、收款) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private bool UsePrepare(EC_OrderBasic _orderBasic, decimal UnPayedMoney = 0) |
| | | { |
| | | decimal? money = _orderBasic.UnPayedMoney; |
| | | if(UnPayedMoney > 0) |
| | | { |
| | | money = UnPayedMoney; |
| | | } |
| | | int operatTypeId = 3; |
| | | string subject = "订单付款"; |
| | | switch (Request["outsourceType"]) |
| | | { |
| | | case "1": |
| | | operatTypeId = 2; |
| | | subject = "外协付款"; |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | return _eC_OrderBasicBLL.ReceiveMoney(_orderBasic.SellerId, _orderBasic.BuyerId, _orderBasic.Keyid.Value, money.Value, operatTypeId, subject, CurrentUser.ShortName); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 查询参数 |
| | | /// </summary> |
| | | private Dictionary<int, object> SearchParam |
| | | { |
| | | get |
| | | { |
| | | return ViewState["SearchParam"] as Dictionary<int, object>; |
| | | } |
| | | set |
| | | { |
| | | ViewState["SearchParam"] = value; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置查询参数方法 |
| | | /// </summary> |
| | | /// <param name="target">设置目标</param> |
| | | /// <param name="key">键</param> |
| | | /// <param name="value">值</param> |
| | | private static void SetParamValue(Dictionary<int, object> target, int key, object value) |
| | | { |
| | | if (string.IsNullOrEmpty(string.Format("{0}", value))) |
| | | return; |
| | | else |
| | | { |
| | | } |
| | | |
| | | if (target.ContainsKey(key)) |
| | | { |
| | | target[key] = value; |
| | | } |
| | | else |
| | | { |
| | | target.Add(key, value); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | |
| | | |
| | | public partial class InvoicingShouruqueren |
| | | { |
| | | |
| | | /// <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> |
| | | /// txtBuyerName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtBuyerName; |
| | | |
| | | /// <summary> |
| | | /// txtFapiaohao 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtFapiaohao; |
| | | |
| | | /// <summary> |
| | | /// txtSumMoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtSumMoney; |
| | | |
| | | /// <summary> |
| | | /// hidReceiveMoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden hidReceiveMoney; |
| | | |
| | | /// <summary> |
| | | /// txtReceiveMoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtReceiveMoney; |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Submit; |
| | | |
| | | /// <summary> |
| | | /// ids 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden ids; |
| | | |
| | | /// <summary> |
| | | /// rptData 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater rptData; |
| | | |
| | | /// <summary> |
| | | /// NoMoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl NoMoney; |
| | | } |
| | | } |