| | |
| | | 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_FukuanshenqingDAL, "OA_FukuanshenqingDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_KaipiaonewDAL, "OA_KaipiaonewDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderDAL, "CoreCmsPlanOrderDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderItemDAL, "CoreCmsPlanOrderItemDAL"); |
| | |
| | | /// <summary> |
| | | /// 开票申请 |
| | | /// </summary> |
| | | IOA_FukuanshenqingDAL = 1935, |
| | | /// <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_FukuanshenqingBLL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaoJineQuerenBLL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewBLL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewcuishouBLL.cs" /> |
New file |
| | |
| | | |
| | | /** |
| | | * OA_FukuanshenqingBLL.cs |
| | | * |
| | | * 功 能: 合作客户业务逻辑类 |
| | | * 类 名: OA_FukuanshenqingBLL |
| | | * |
| | | * 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_FukuanshenqingBLL |
| | | { |
| | | |
| | | IOA_FukuanshenqingDAL _IOA_FukuanshenqingDAL = null; |
| | | |
| | | /// <summary> |
| | | /// 初始化构造 |
| | | /// </summary> |
| | | public OA_FukuanshenqingBLL() |
| | | { |
| | | //获取OA_Fukuanshenqing DAL实现 |
| | | _IOA_FukuanshenqingDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_FukuanshenqingDAL) as IOA_FukuanshenqingDAL; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 新增送货安排 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <param name="m_OA_CustomerCommunications"></param> |
| | | /// <param name="m_EC_AcceptWayByCustomers"></param> |
| | | /// <returns></returns> |
| | | public int InsertModel(CY.Model.OA_Fukuanshenqing m_OA_Fukuanshenqing) |
| | | { |
| | | try |
| | | { |
| | | |
| | | return _IOA_FukuanshenqingDAL.InserModelbackid(m_OA_Fukuanshenqing); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改送货安排 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(CY.Model.OA_Fukuanshenqing m_OA_Fukuanshenqing) |
| | | { |
| | | try |
| | | { |
| | | return _IOA_FukuanshenqingDAL.UpdateModel(m_OA_Fukuanshenqing); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取全部合作客户 |
| | | /// </summary> |
| | | /// <param name="Keyid">主键id</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<OA_Fukuanshenqing> GetModelList() |
| | | { |
| | | Query query = new Query(); |
| | | return _IOA_FukuanshenqingDAL.SelectAllModel(query); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据formid获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_Fukuanshenqing> GetModelByformid(Guid formid) |
| | | { |
| | | |
| | | return _IOA_FukuanshenqingDAL.GetModelByformid(formid); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取全部合作客户 |
| | | /// </summary> |
| | | /// <param name="Keyid">主键id</param> |
| | | /// <returns></returns> |
| | | public OA_Fukuanshenqing GetModelByKeyid(int keyid) |
| | | { |
| | | |
| | | return _IOA_FukuanshenqingDAL.GetModelByKeyid(keyid); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除合作客户 |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(CY.Model.OA_Fukuanshenqing rType) |
| | | { |
| | | try |
| | | { |
| | | _IOA_FukuanshenqingDAL.DeleteModel(rType); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询合作客户分页列表 |
| | | /// </summary> |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<OA_Fukuanshenqing> SelectModelPage(Pagination pa, Guid FirmId, string CreateTimeStart, string CreateTimeEnd, |
| | | string Creater, string SupplierName,string shifoufukuan) |
| | | { |
| | | string Condition = " and ok.FirmId ='" + FirmId + "' and ok.ApprovalStatus = 1 "; |
| | | |
| | | 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(Creater)) |
| | | Condition += " and ok.Creater like '%" + Creater + "%'"; |
| | | |
| | | if (!string.IsNullOrEmpty(SupplierName)) |
| | | Condition += " and oe.Name like '%" + SupplierName + "%'"; |
| | | if (!string.IsNullOrEmpty(shifoufukuan)) |
| | | Condition += " and ok.FukuanStatus = '" + shifoufukuan + "'"; |
| | | |
| | | Query query = new Query(); |
| | | IList<Criterion> criterias = new List<Criterion>() |
| | | { |
| | | new Criterion("", Condition), |
| | | |
| | | new Criterion("orderBy"," CreateTime desc ") |
| | | }; |
| | | query.Criteria = criterias; |
| | | return _IOA_FukuanshenqingDAL.SelectModelPage(query, pa); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 查询合作客户分页列表 |
| | | /// </summary> |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<OA_Fukuanshenqing> SelectModelPageweikaipiao(Pagination pa, Guid FirmId, string CreateTimeStart, string CreateTimeEnd, |
| | | string Creater, string SupplierName, string shifoufukuan) |
| | | { |
| | | string Condition = " and ok.FirmId ='" + FirmId + "' and ok.ApprovalStatus = 1 and ok.Youwufapiao !=2 and ok.FukuanStatus = 2 "; |
| | | |
| | | 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(Creater)) |
| | | Condition += " and ok.Creater like '%" + Creater + "%'"; |
| | | |
| | | if (!string.IsNullOrEmpty(SupplierName)) |
| | | Condition += " and oe.Name like '%" + SupplierName + "%'"; |
| | | if (!string.IsNullOrEmpty(shifoufukuan)) |
| | | Condition += " and ok.FukuanStatus = '" + shifoufukuan + "'"; |
| | | |
| | | Query query = new Query(); |
| | | IList<Criterion> criterias = new List<Criterion>() |
| | | { |
| | | new Criterion("", Condition), |
| | | |
| | | new Criterion("orderBy"," CreateTime desc ") |
| | | }; |
| | | query.Criteria = criterias; |
| | | return _IOA_FukuanshenqingDAL.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_FukuanshenqingDAL.cs" /> |
| | | <Compile Include="OA\IOA_KaipiaoJineQuerenDAL.cs" /> |
| | | <Compile Include="OA\IOA_KaipiaonewcuishouDAL.cs" /> |
| | | <Compile Include="OA\IOA_KaipiaonewDAL.cs" /> |
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_FukuanshenqingDAL : ICommonDAL, IPaging<OA_Fukuanshenqing>, IGetAllModel<OA_Fukuanshenqing> |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 根据编号获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | OA_Fukuanshenqing GetModelByKeyid(int keyid); |
| | | |
| | | /// <summary> |
| | | /// 根据formid获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | IEnumerable<OA_Fukuanshenqing> GetModelByformid(Guid formid); |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据编号获得信息 |
| | | /// </summary> |
| | | /// <param name="Keyid">编号</param> |
| | | /// <returns></returns> |
| | | int InserModelbackid(OA_Fukuanshenqing oA_Fukuanshenqing); |
| | | } |
| | | } |
| | |
| | | <Compile Include="OA\OA_FirmAccountRecordExtend.cs" /> |
| | | <Compile Include="OA\OA_FirmRole.cs" /> |
| | | <Compile Include="OA\OA_FirmRolePermissionsRel.cs" /> |
| | | <Compile Include="OA\OA_Fukuanshenqing.cs" /> |
| | | <Compile Include="OA\OA_GoodsInfo.cs" /> |
| | | <Compile Include="OA\OA_IntentionCustomer.cs" /> |
| | | <Compile Include="OA\OA_IntentionCustomerExtend.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_Fukuanshenqing : IAggregateRoot |
| | | { |
| | | |
| | | public OA_Fukuanshenqing() |
| | | { |
| | | } |
| | | #region Model |
| | | /// <summary> |
| | | /// id |
| | | /// </summary> |
| | | public int Keyid { get; set; } |
| | | /// <summary> |
| | | /// FirmId |
| | | /// </summary> |
| | | public Guid FirmId { get; set; } |
| | | /// <summary> |
| | | /// 客户id |
| | | /// </summary> |
| | | public int SupplierId { get; set; } |
| | | /// <summary> |
| | | /// 客户id |
| | | /// </summary> |
| | | public string SupplierName { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 审核状态/未审核0,批准1,不批准2,已结束3 |
| | | /// </summary> |
| | | public int? Fukuanshenqingstatus { get; set; } |
| | | /// <summary> |
| | | /// 审核状态/未审核0,批准1,不批准2,已结束3 |
| | | /// </summary> |
| | | public int? ApprovalStatus { get; set; } |
| | | |
| | | public decimal? Fukuanmoney { get; set; } |
| | | |
| | | public decimal? Yishoumoney { get; set; } |
| | | |
| | | |
| | | public string Bank { get; set; } |
| | | |
| | | public string AccountID { get; set; } |
| | | |
| | | |
| | | public int? Youwufapiao |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | |
| | | |
| | | public string YouwufapiaoName |
| | | { |
| | | get |
| | | { |
| | | if (Youwufapiao.HasValue && Youwufapiao.Value == 2) |
| | | { |
| | | return "已开票"; |
| | | } |
| | | else |
| | | { |
| | | return "未开票"; |
| | | } |
| | | } |
| | | } |
| | | |
| | | public string Fukuanyongtu { get; set; } |
| | | |
| | | public int? FukuanStatus { get; set; } |
| | | |
| | | |
| | | public string FukuanStatusName { get |
| | | { |
| | | if(FukuanStatus.HasValue && FukuanStatus.Value == 2) |
| | | { |
| | | return "已付款"; |
| | | } |
| | | else |
| | | { |
| | | return "未付款"; |
| | | } |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 说明 |
| | | /// </summary> |
| | | public string remark { get; set; } |
| | | |
| | | |
| | | public string DindanId { 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 ("SupplierId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) |
| | | { |
| | | this.SupplierId = isChange ? MyConvert.ConvertToInt32(value).Value : SupplierId; |
| | | theValue = this.SupplierId; |
| | | } |
| | | else if ("SupplierName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) |
| | | { |
| | | this.SupplierName = isChange ? MyConvert.ConvertToString(value) : SupplierName; |
| | | theValue = this.SupplierName; |
| | | } |
| | | |
| | | else if ("Fukuanshenqingstatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) |
| | | { |
| | | this.Fukuanshenqingstatus = isChange ? MyConvert.ConvertToInt32(value) : Fukuanshenqingstatus; |
| | | theValue = this.Fukuanshenqingstatus; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | 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; |
| | | } |
| | | |
| | | else if ("ApprovalStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18) |
| | | { |
| | | this.ApprovalStatus = isChange ? MyConvert.ConvertToInt32(value) : ApprovalStatus; |
| | | theValue = this.ApprovalStatus; |
| | | } |
| | | else if ("Fukuanmoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19) |
| | | { |
| | | this.Fukuanmoney = isChange ? MyConvert.ConvertToDecimal(value) : Fukuanmoney; |
| | | theValue = this.Fukuanmoney; |
| | | } |
| | | else if ("Yishoumoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20) |
| | | { |
| | | this.Yishoumoney = isChange ? MyConvert.ConvertToDecimal(value) : Yishoumoney; |
| | | theValue = this.Yishoumoney; |
| | | } |
| | | else if ("Bank".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21) |
| | | { |
| | | this.Bank = isChange ? MyConvert.ConvertToString(value) : Bank; |
| | | theValue = this.Bank; |
| | | } |
| | | else if ("AccountID".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22) |
| | | { |
| | | this.AccountID = isChange ? MyConvert.ConvertToString(value) : AccountID; |
| | | theValue = this.AccountID; |
| | | } |
| | | else if ("Youwufapiao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23) |
| | | { |
| | | this.Youwufapiao = isChange ? MyConvert.ConvertToInt32(value) : Youwufapiao; |
| | | theValue = this.Youwufapiao; |
| | | } |
| | | else if ("Fukuanyongtu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24) |
| | | { |
| | | this.Fukuanyongtu = isChange ? MyConvert.ConvertToString(value) : Fukuanyongtu; |
| | | theValue = this.Fukuanyongtu; |
| | | } |
| | | |
| | | else if ("FukuanStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25) |
| | | { |
| | | this.FukuanStatus = isChange ? MyConvert.ConvertToInt32(value) : FukuanStatus; |
| | | theValue = this.FukuanStatus; |
| | | } |
| | | else if ("remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26) |
| | | { |
| | | this.remark = isChange ? MyConvert.ConvertToString(value) : remark; |
| | | theValue = this.remark; |
| | | } |
| | | else if ("DindanId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27) |
| | | { |
| | | this.DindanId = isChange ? MyConvert.ConvertToString(value) : DindanId; |
| | | theValue = this.DindanId; |
| | | } |
| | | |
| | | |
| | | return theValue; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | set { _remark = value; } |
| | | get { return _remark; } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 开户行 |
| | | /// </summary> |
| | | public string Bank { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 账号 |
| | | /// </summary> |
| | | public string AccountID { get; set; } |
| | | |
| | | #endregion Model |
| | | |
| | | #region Visiter |
| | |
| | | this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark; |
| | | theValue = this.Remark; |
| | | } |
| | | else if ("Bank".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31) |
| | | { |
| | | this.Bank = isChange ? MyConvert.ConvertToString(value) : Bank; |
| | | theValue = this.Bank; |
| | | } |
| | | else if ("AccountID".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 32) |
| | | { |
| | | this.AccountID = isChange ? MyConvert.ConvertToString(value) : AccountID; |
| | | theValue = this.AccountID; |
| | | } |
| | | |
| | | #region 扩展属性 |
| | | else if ("CooperativeStateName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31) |
| | |
| | | <Compile Include="OA\OA_DepartmentDAL.cs" /> |
| | | <Compile Include="OA\OA_DocumentDAL.cs" /> |
| | | <Compile Include="OA\OA_DocumentDicDAL.cs" /> |
| | | <Compile Include="OA\OA_FukuanshenqingDAL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaoJineQuerenDAL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewcuishouDAL.cs" /> |
| | | <Compile Include="OA\OA_KaipiaonewDAL.cs" /> |
| | |
| | | new SqlParameter("@KaipiaoshenqingId",DBNull.Value){SqlDbType=SqlDbType.UniqueIdentifier}, |
| | | new SqlParameter("@buyerId",DBNull.Value){SqlDbType=SqlDbType.UniqueIdentifier}, |
| | | new SqlParameter("@DocumentName",DBNull.Value){SqlDbType=SqlDbType.VarChar,Size=50}, |
| | | |
| | | new SqlParameter("@Orderids",DBNull.Value){SqlDbType=SqlDbType.VarChar,Size=500}, |
| | | |
| | | }; |
| | | |
| | | /* |
| | |
| | | } |
| | | } |
| | | /*获取页数与返回数据条数*/ |
| | | int? resultValue = CY.Infrastructure.Common.MyConvert.ConvertToInt32(sqlParms[31].Value); |
| | | int? resultValue = CY.Infrastructure.Common.MyConvert.ConvertToInt32(sqlParms[32].Value); |
| | | pagination.PageCount = resultValue.HasValue ? resultValue.Value : 0; |
| | | resultValue = CY.Infrastructure.Common.MyConvert.ConvertToInt32(sqlParms[32].Value); |
| | | resultValue = CY.Infrastructure.Common.MyConvert.ConvertToInt32(sqlParms[33].Value); |
| | | pagination.RecordCount = resultValue.HasValue ? resultValue.Value : 0; |
| | | |
| | | return result; |
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_FukuanshenqingDAL : IOA_FukuanshenqingDAL |
| | | { |
| | | |
| | | private Database _dataBase = null; |
| | | #region 常量 |
| | | /// <summary> |
| | | /// 查询目标 |
| | | /// </summary> |
| | | const string SELECTTARGET = " t.* "; |
| | | /// <summary> |
| | | /// 查询来源 |
| | | /// </summary> |
| | | const string FROMSOUCEBEFORE = " ( select distinct ok.*, " + |
| | | " oe.Name as SupplierName " + |
| | | " from [OA_Fukuanshenqing] ok inner join [OA_Suppliers] oe on oe.Keyid = ok.[SupplierId] " + |
| | | |
| | | |
| | | " where 0=0 "; |
| | | const string FROMSOUCEEND = ") as t "; |
| | | /// <summary> |
| | | /// 分页默认排序字段 |
| | | /// </summary> |
| | | const string ORDERBY = " CreateTime desc "; |
| | | #endregion |
| | | public OA_FukuanshenqingDAL() |
| | | { |
| | | _dataBase = new Database(); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 新增 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool InserModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.OA_Fukuanshenqing trueModel = model as Model.OA_Fukuanshenqing; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | SqlParameter KehuqianshouTime = null; |
| | | |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@SupplierId",trueModel.SupplierId), |
| | | new SqlParameter("@Fukuanshenqingstatus",trueModel.Fukuanshenqingstatus.HasValue?trueModel.Fukuanshenqingstatus.Value:0), |
| | | new SqlParameter("@ApprovalStatus",trueModel.ApprovalStatus.HasValue?trueModel.ApprovalStatus.Value:0), |
| | | new SqlParameter("@Fukuanmoney",trueModel.Fukuanmoney.HasValue?trueModel.Fukuanmoney.Value:0), |
| | | new SqlParameter("@Bank",string.IsNullOrEmpty(trueModel.Bank)?"":trueModel.Bank), |
| | | new SqlParameter("@AccountID",string.IsNullOrEmpty(trueModel.AccountID)?"":trueModel.AccountID), |
| | | new SqlParameter("@Yishoumoney",trueModel.Yishoumoney.HasValue?trueModel.Yishoumoney.Value:0), |
| | | new SqlParameter("@Youwufapiao",trueModel.Youwufapiao.HasValue?trueModel.Youwufapiao.Value:0), |
| | | new SqlParameter("@Fukuanyongtu",string.IsNullOrEmpty(trueModel.Fukuanyongtu)?"":trueModel.Fukuanyongtu), |
| | | new SqlParameter("@FukuanStatus",trueModel.FukuanStatus.HasValue?trueModel.FukuanStatus.Value:0), |
| | | new SqlParameter("@remark",string.IsNullOrEmpty(trueModel.remark)?"":trueModel.remark), |
| | | new SqlParameter("@DindanId",string.IsNullOrEmpty(trueModel.DindanId)?"":trueModel.DindanId), |
| | | 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_Fukuanshenqing ([FirmId],[SupplierId],[Fukuanshenqingstatus],[ApprovalStatus], [Fukuanmoney], [Bank],[AccountID], [Yishoumoney],[Youwufapiao], [Creater],[CreateTime],[Updater],[LastUpdateTime],[Fukuanyongtu],FukuanStatus,remark,DindanId)" |
| | | + " Values (@FirmId,@SupplierId,@Fukuanshenqingstatus, @ApprovalStatus, @Fukuanmoney, @Bank, @AccountID, @Yishoumoney, @Youwufapiao, @Creater,@CreateTime,@Updater,@LastUpdateTime,@Fukuanyongtu,@FukuanStatus,@remark,@DindanId )"; |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 新增 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public int InserModelbackid(OA_Fukuanshenqing trueModel) |
| | | { |
| | | |
| | | SqlParameter KehuqianshouTime = null; |
| | | |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@SupplierId",trueModel.SupplierId), |
| | | new SqlParameter("@Fukuanshenqingstatus",trueModel.Fukuanshenqingstatus.HasValue?trueModel.Fukuanshenqingstatus.Value:0), |
| | | new SqlParameter("@ApprovalStatus",trueModel.ApprovalStatus.HasValue?trueModel.ApprovalStatus.Value:0), |
| | | new SqlParameter("@Fukuanmoney",trueModel.Fukuanmoney.HasValue?trueModel.Fukuanmoney.Value:0), |
| | | new SqlParameter("@Bank",string.IsNullOrEmpty(trueModel.Bank)?"":trueModel.Bank), |
| | | new SqlParameter("@AccountID",string.IsNullOrEmpty(trueModel.AccountID)?"":trueModel.AccountID), |
| | | new SqlParameter("@Yishoumoney",trueModel.Yishoumoney.HasValue?trueModel.Yishoumoney.Value:0), |
| | | new SqlParameter("@Youwufapiao",trueModel.Youwufapiao.HasValue?trueModel.Youwufapiao.Value:0), |
| | | new SqlParameter("@Fukuanyongtu",string.IsNullOrEmpty(trueModel.Fukuanyongtu)?"":trueModel.Fukuanyongtu), |
| | | new SqlParameter("@FukuanStatus",trueModel.FukuanStatus.HasValue?trueModel.FukuanStatus.Value:0), |
| | | new SqlParameter("@remark",string.IsNullOrEmpty(trueModel.remark)?"":trueModel.remark), |
| | | new SqlParameter("@DindanId",string.IsNullOrEmpty(trueModel.DindanId)?"":trueModel.DindanId), |
| | | 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_Fukuanshenqing ([FirmId],[SupplierId],[Fukuanshenqingstatus],[ApprovalStatus], [Fukuanmoney], [Bank],[AccountID], [Yishoumoney],[Youwufapiao], [Creater],[CreateTime],[Updater],[LastUpdateTime],[Fukuanyongtu],FukuanStatus,remark,DindanId)" |
| | | + " Values (@FirmId,@SupplierId,@Fukuanshenqingstatus, @ApprovalStatus, @Fukuanmoney, @Bank, @AccountID, @Yishoumoney, @Youwufapiao, @Creater,@CreateTime,@Updater,@LastUpdateTime,@Fukuanyongtu,@FukuanStatus,@remark,@DindanId )"; |
| | | int id = 0; |
| | | try |
| | | { |
| | | id= _dataBase.InsertDataAndGetId(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return id; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 修改 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.OA_Fukuanshenqing trueModel = model as Model.OA_Fukuanshenqing; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | SqlParameter KehuqianshouTime = null; |
| | | |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@SupplierId",trueModel.SupplierId), |
| | | new SqlParameter("@Fukuanshenqingstatus",trueModel.Fukuanshenqingstatus.HasValue?trueModel.Fukuanshenqingstatus.Value:0), |
| | | new SqlParameter("@ApprovalStatus",trueModel.ApprovalStatus.HasValue?trueModel.ApprovalStatus.Value:0), |
| | | new SqlParameter("@Fukuanmoney",trueModel.Fukuanmoney.HasValue?trueModel.Fukuanmoney.Value:0), |
| | | new SqlParameter("@Bank",string.IsNullOrEmpty(trueModel.Bank)?"":trueModel.Bank), |
| | | new SqlParameter("@AccountID",string.IsNullOrEmpty(trueModel.AccountID)?"":trueModel.AccountID), |
| | | new SqlParameter("@Yishoumoney",trueModel.Yishoumoney.HasValue?trueModel.Yishoumoney.Value:0), |
| | | new SqlParameter("@Youwufapiao",trueModel.Youwufapiao.HasValue?trueModel.Youwufapiao.Value:0), |
| | | new SqlParameter("@Fukuanyongtu",string.IsNullOrEmpty(trueModel.Fukuanyongtu)?"":trueModel.Fukuanyongtu), |
| | | new SqlParameter("@FukuanStatus",trueModel.FukuanStatus.HasValue?trueModel.FukuanStatus.Value:0), |
| | | new SqlParameter("@remark",string.IsNullOrEmpty(trueModel.remark)?"":trueModel.remark), |
| | | new SqlParameter("@DindanId",string.IsNullOrEmpty(trueModel.DindanId)?"":trueModel.DindanId), |
| | | new SqlParameter("@CreateTime",trueModel.CreateTime), |
| | | new SqlParameter("@Updater",trueModel.Updater), |
| | | new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime), |
| | | new SqlParameter("@Creater",trueModel.Creater), |
| | | |
| | | }; |
| | | string sql = "Update OA_Fukuanshenqing Set [FirmId]=@FirmId,[SupplierId]=@SupplierId,[Fukuanshenqingstatus]=@Fukuanshenqingstatus,[ApprovalStatus]=@ApprovalStatus, [Fukuanmoney]=@Fukuanmoney, [Bank]=@Bank,[AccountID]=@AccountID, [Yishoumoney]=@Yishoumoney,[Youwufapiao]=@Youwufapiao, [Creater]=@Creater,[CreateTime]=@CreateTime,[Updater]=@Updater,[LastUpdateTime]=@LastUpdateTime,Fukuanyongtu=@Fukuanyongtu,FukuanStatus=@FukuanStatus,remark=@remark,DindanId=@DindanId 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_Fukuanshenqing GetModelByKeyid(int keyid) |
| | | { |
| | | try |
| | | { |
| | | string condition = " "; |
| | | if (keyid>0) |
| | | { |
| | | condition = " Keyid=" + keyid + ""; |
| | | } |
| | | else |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | // return null;//错误数据返会空 |
| | | |
| | | IList<OA_Fukuanshenqing> result = _dataBase.SelectModel<OA_Fukuanshenqing>("*", "OA_Fukuanshenqing", condition) as IList<OA_Fukuanshenqing>;//执行查询 |
| | | |
| | | 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_Fukuanshenqing> SelectAllModel(Infrastructure.Query.Query query) |
| | | { |
| | | return _dataBase.SelectModel<Model.OA_Fukuanshenqing>(" * ", " OA_Fukuanshenqing ") as IList<Model.OA_Fukuanshenqing>;//执行查询 |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 全部查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_Fukuanshenqing> GetModelByformid(Guid FirmId) |
| | | { |
| | | return _dataBase.SelectModel<Model.OA_Fukuanshenqing>(" * ", " OA_Fukuanshenqing ", " FirmId = '" + FirmId + "'") as IList<Model.OA_Fukuanshenqing>;//执行查询 |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 分页查询 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <param name="pagination"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_Fukuanshenqing> 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_Fukuanshenqing>(pagination, SELECTTARGET, fromSouce, orderbys[0], resultOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.OA_Fukuanshenqing trueModel = model as Model.OA_Fukuanshenqing; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | new SqlParameter("@Keyid",trueModel.Keyid) |
| | | }; |
| | | string sql = "Delete OA_Fukuanshenqing Where [Keyid] = @Keyid "; |
| | | |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | |
| | | new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime), |
| | | new SqlParameter("@Operator",trueModel.Operator), |
| | | new SqlParameter("@Remark",trueModel.Remark) , |
| | | new SqlParameter("@OrderNum",trueModel.OrderNum) |
| | | new SqlParameter("@OrderNum",trueModel.OrderNum) , |
| | | new SqlParameter("@Bank",string.IsNullOrEmpty(trueModel.Bank)?"":trueModel.Bank) , |
| | | new SqlParameter("@AccountID",string.IsNullOrEmpty(trueModel.AccountID)?"":trueModel.AccountID) , |
| | | }; |
| | | try |
| | | { |
| | |
| | | new SqlParameter("@LastUpdateTime",trueModel.LastUpdateTime), |
| | | new SqlParameter("@Operator",trueModel.Operator), |
| | | new SqlParameter("@Remark",trueModel.Remark) , |
| | | new SqlParameter("@OrderNum",trueModel.OrderNum) |
| | | new SqlParameter("@OrderNum",trueModel.OrderNum) , |
| | | new SqlParameter("@Bank",string.IsNullOrEmpty(trueModel.Bank)?"":trueModel.Bank) , |
| | | new SqlParameter("@AccountID",string.IsNullOrEmpty(trueModel.AccountID)?"":trueModel.AccountID) , |
| | | }; |
| | | try |
| | | { |
| | |
| | | <Content Include="Pages\business\BackVisitNoteEdit.aspx" /> |
| | | <Content Include="Pages\business\BargainPrice.aspx" /> |
| | | <Content Include="Pages\business\BargainPriceByFirm.aspx" /> |
| | | <Content Include="Pages\business\Waixiefukuanweikaipiao.aspx" /> |
| | | <Content Include="Pages\business\Waixiefukuanfukuan.aspx" /> |
| | | <Content Include="Pages\business\InvoicingWeiquerenshouru.aspx" /> |
| | | <Content Include="Pages\business\InvoicingHuikuan.aspx" /> |
| | | <Content Include="Pages\business\InvoicingCuishou.aspx" /> |
| | | <Content Include="Pages\business\Waixiefukuanshenqing.aspx" /> |
| | | <Content Include="Pages\business\kaipiaoKehu.aspx" /> |
| | | <Content Include="Pages\business\OrderListBatchKaipiao.aspx" /> |
| | | <Content Include="Pages\business\WorkBookUpLoad.aspx" /> |
| | |
| | | <Content Include="Pages\common\U_Login.ascx" /> |
| | | <Content Include="Pages\financial\DepositsCustomershouruqueren.aspx" /> |
| | | <Content Include="Pages\financial\DepositsCustomerFapiao.aspx" /> |
| | | <Content Include="Pages\financial\WaixieExpenses.aspx" /> |
| | | <Content Include="Pages\financial\FirmAccountPrint.aspx" /> |
| | | <Content Include="Pages\financial\FirmAccountPrintTable.aspx" /> |
| | | <Content Include="Pages\financial\InvoicingShouruqueren.aspx" /> |
| | |
| | | <Compile Include="Pages\business\BargainPriceByFirm.aspx.designer.cs"> |
| | | <DependentUpon>BargainPriceByFirm.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\Waixiefukuanweikaipiao.aspx.cs"> |
| | | <DependentUpon>Waixiefukuanweikaipiao.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\Waixiefukuanweikaipiao.aspx.designer.cs"> |
| | | <DependentUpon>Waixiefukuanweikaipiao.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\Waixiefukuanfukuan.aspx.cs"> |
| | | <DependentUpon>Waixiefukuanfukuan.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\Waixiefukuanfukuan.aspx.designer.cs"> |
| | | <DependentUpon>Waixiefukuanfukuan.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\InvoicingWeiquerenshouru.aspx.cs"> |
| | | <DependentUpon>InvoicingWeiquerenshouru.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | </Compile> |
| | | <Compile Include="Pages\business\InvoicingCuishou.aspx.designer.cs"> |
| | | <DependentUpon>InvoicingCuishou.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\Waixiefukuanshenqing.aspx.cs"> |
| | | <DependentUpon>Waixiefukuanshenqing.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\Waixiefukuanshenqing.aspx.designer.cs"> |
| | | <DependentUpon>Waixiefukuanshenqing.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\kaipiaoKehu.aspx.cs"> |
| | | <DependentUpon>kaipiaoKehu.aspx</DependentUpon> |
| | |
| | | <Compile Include="Pages\financial\DepositsCustomerFapiao.aspx.designer.cs"> |
| | | <DependentUpon>DepositsCustomerFapiao.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\financial\WaixieExpenses.aspx.cs"> |
| | | <DependentUpon>WaixieExpenses.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\financial\WaixieExpenses.aspx.designer.cs"> |
| | | <DependentUpon>WaixieExpenses.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\financial\FirmAccountPrint.aspx.cs"> |
| | | <DependentUpon>FirmAccountPrint.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | top.Dialog.open({ URL: "/Pages/business/CorporateClientsDetail.aspx?Keyid=" + personId, Title: "查看客户", Width: 900, Height: 580 }); |
| | | } |
| | | |
| | | |
| | | /* |
| | | 确认受理 |
| | | */ |
| | | function ToAccept(orderId) { |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | top.Dialog.confirm('确认撤回申请?', function () { |
| | | DoAccept(orderId); |
| | | }); |
| | | } |
| | | |
| | | |
| | | /* |
| | | 处理受理订单 |
| | | */ |
| | | var DoAccept = function (orderId) { |
| | | |
| | | window.submitUrl = "/Pages/business/InvoicingConfirm.aspx"; //设置当前页的提交路径 |
| | | |
| | | CallServer({ Target: "AcceptOrder", id: orderId }, function (data, textStatus) { |
| | | if ('1' == data) { |
| | | alertMsg('操作成功!'); |
| | | RefreshDIVOpener(); //关闭页面 |
| | | } else { |
| | | alertMsg(data); |
| | | //dialog.close(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | </script> |
| | | <style type="text/css"> |
| | |
| | | <th width="60"> |
| | | 开票状态 |
| | | </th> |
| | | <th width="160"> |
| | | <th width="180"> |
| | | 操作 |
| | | |
| | | </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='ViewShouru("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 收入确认 </a> |
| | | <a href='javascript:void(0)' title='收款' class='a_under' onclick='ViewShouru("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 收入确认 </a> |
| | | |
| | | <a href='javascript:void(0)' title='撤回' class='a_under' onclick='ToAccept("<%#Eval("Keyid")%>")'> 撤回 </a> |
| | | </td> |
| | | |
| | | </tr> |
| | |
| | | private void Accept() |
| | | { |
| | | Response.Clear(); |
| | | PayAbout payAbout = new PayAbout(); |
| | | payAbout.LoadNewestPaymentAccount(true); |
| | | double? commission = MyConvert.ConvertToDouble(CY.Config.WebInfo.Instance.FirmOrderAgencyFee); |
| | | int? orderId = string.IsNullOrEmpty(Request["id"]) ? null : MyConvert.ConvertToInt32(Request["id"]); |
| | | if (!orderId.HasValue || !commission.HasValue) |
| | | |
| | | |
| | | var orderId = string.IsNullOrEmpty(Request["id"]) ? Guid.Empty : MyConvert.ConvertToGuid(Request["id"]); |
| | | if ( orderId == Guid.Empty) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | var a_Kaipiaoshenqing = oA_KaipiaoshenqingBLL.GetModelByKeyid(orderId); |
| | | |
| | | if (a_Kaipiaoshenqing !=null ) |
| | | { |
| | | if(a_Kaipiaoshenqing.Kaipiaoshenqing == 3) |
| | | { |
| | | Response.Write("已开票,无法撤回!"); |
| | | return; |
| | | } |
| | | if(a_Kaipiaoshenqing.Shenqingleixing == "订单开票") |
| | | { |
| | | 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, a_Kaipiaoshenqing.Keyid); |
| | | SetParamValue(searchParam, 29, ""); |
| | | |
| | | |
| | | |
| | | SearchParam = searchParam; |
| | | |
| | | |
| | | |
| | | Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination() |
| | | { |
| | | PageSize = 1000, |
| | | PageIndex = 1 |
| | | }; |
| | | IEnumerable<EC_OrderBasic> result = _eC_OrderBasicBLL.SelectModelPage_Seller(pagination, SearchParam); |
| | | |
| | | var PayedMoney = result.Sum(x => x.TradingSingle.PayedMoney); |
| | | if (PayedMoney.HasValue && PayedMoney > 0) |
| | | { |
| | | Response.Write("已经有回款记录,无法撤回!"); |
| | | return; |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | if (a_Kaipiaoshenqing.Kehumoney.HasValue && a_Kaipiaoshenqing.Kehumoney.Value > 0) |
| | | { |
| | | Response.Write("已经有回款记录,无法撤回!"); |
| | | return; |
| | | } |
| | | |
| | | } |
| | | var sss = oA_KaipiaoshenqingBLL.DeleteModel(a_Kaipiaoshenqing); |
| | | if (!sss) |
| | | { |
| | | Response.Write("撤回失败!"); |
| | | return; |
| | | } |
| | | if (a_Kaipiaoshenqing.Shenqingleixing == "订单开票") |
| | | { |
| | | EC_OrderExtend model = new EC_OrderExtend(); |
| | | model.KaipiaoshenqingId = a_Kaipiaoshenqing.Keyid; |
| | | model.KaipiaoshenqingTime = null; |
| | | model.Kaipiaoshenqing = 2; |
| | | model.KaipiaoshenqingCreater = Guid.Empty; |
| | | |
| | | sss = _eC_OrderBLL.NewUpdateKaipiaoshenqings(model); |
| | | |
| | | if (!sss) |
| | | { |
| | | Response.Write("撤回失败!"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | else |
| | | { |
| | | Response.Write("撤回失败!"); |
| | | return; |
| | | } |
| | | Response.Write(_eC_OrderBasicBLL.AcceptOrder(orderId.Value, commission.Value) ? "1" : "0"); |
| | | |
| | | |
| | | |
| | | |
| | | Response.Write( "1"); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | |
| | | |
| | | |
| | | string orderids = Request["SellerOrderId"] == null ? "" : Request["SellerOrderId"]; |
| | | |
| | | |
| | | |
| | |
| | | SetParamValue(searchParam, 23, ""); |
| | | SetParamValue(searchParam, 24, ""); |
| | | SetParamValue(searchParam, 25, ""); |
| | | SetParamValue(searchParam, 26, KaipiaoshenqingId.ToGuid2()); |
| | | if (string.IsNullOrEmpty(KaipiaoshenqingId)) |
| | | { |
| | | SetParamValue(searchParam, 26, ""); |
| | | SetParamValue(searchParam, 29, orderids); |
| | | |
| | | } |
| | | else |
| | | { |
| | | SetParamValue(searchParam, 26, KaipiaoshenqingId.ToGuid2()); |
| | | SetParamValue(searchParam, 29, ""); |
| | | } |
| | | |
| | | SearchParam = searchParam; |
| | | |
| | | |
| | |
| | | } |
| | | ); |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | /* |
| | | 确认批量开票申请 |
| | | */ |
| | | function ToWaixieFukuan() { |
| | | |
| | | var ids = ''; |
| | | var ordernos = ''; |
| | | var cks = $("input[name='ckId']:checked"); |
| | | if (cks.length == 0) { |
| | | alertMsg('没有选中任何项!'); |
| | | return; |
| | | } |
| | | else { |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | cks.each( |
| | | function () { |
| | | var ckVal = $(this).val(); |
| | | |
| | | var ckValJson = eval('(' + ckVal + ')'); |
| | | |
| | | ids = ids + ',' + ckValJson.id; |
| | | ordernos = ordernos + ',' + ckValJson.orderId; |
| | | |
| | | |
| | | } |
| | | ); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | kaipiaoConfirm(ids, ordernos); |
| | | //var msg = ('确认开票申请吗?'); |
| | | //top.Dialog.confirm(msg, function () { |
| | | // DoAcceptAll3(ids); |
| | | //}); |
| | | |
| | | } |
| | | function kaipiaoConfirm(orderId,orderno) { |
| | | var url = "/Pages/business/Waixiefukuanshenqing.aspx?id=" + orderId + "&&orderno=" + orderno; |
| | | top.Dialog.open({ URL: url, Title: "外协付款申请", Height: 600, Width: 580 }); |
| | | } |
| | | </script> |
| | | <style type="text/css"> |
| | | .tableStyleXS th { padding: 1px 0 1px 3px; background-image:none; border-bottom:1px solid #CCC; } |
| | |
| | | <div class="box_tool_line"> |
| | | </div> |
| | | <a href="javascript:;" menu_member_case_id="case_ToPrintAwbOrder" menu_member_case_name="打印送货单" onclick="ToPrintAwbOrder()"><span class="icon_edit">打印送货单</span></a> |
| | | <div class="box_tool_line"> |
| | | </div> |
| | | <a href="javascript:;" onclick="ToWaixieFukuan()"><span class="icon_edit">外协付款申请</span></a> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Waixiefukuanfukuan.aspx.cs" Inherits="CY.WebForm.Pages.business.Waixiefukuanfukuan" %> |
| | | |
| | | |
| | | <!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/WaixiefukuanfukuanEdit.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/WaixiefukuanfukuanEdit.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) { |
| | | |
| | | top.Dialog.open({ URL: "/Pages/financial/WaixieExpenses.aspx?id=" + personId, Title: "外协付款", Width: 600, Height: 800 }); |
| | | |
| | | |
| | | } |
| | | //收入确认 |
| | | 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) { |
| | | top.Dialog.open({ URL: "/Pages/business/InvoicingHuikuan.aspx?id=" + personId, Title: "付款登记", Width: 400, Height: 600 }); |
| | | } |
| | | |
| | | |
| | | //查看客户资料 |
| | | function Viewkaipiao(Keyid, SellerOrderId) { |
| | | window.open("/Pages/business/InvoicingOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, '', ''); |
| | | } |
| | | //查看 |
| | | function onView(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/procurement/SuppliersDetail.aspx?Keyid=" + keyid, Title: "查看供应商", Width: 950, Height: 650 }); |
| | | } |
| | | |
| | | |
| | | </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> |
| | | <input id='txtCreatorName' runat="server" maxlength='50' /> |
| | | </td> |
| | | <td class="ali03"> |
| | | 是否付款: |
| | | </td> |
| | | <td> |
| | | <select keepdefaultstyle='true' id='selPayStates' runat="server" > |
| | | <option value="">全部</option> |
| | | <option value="2">是</option> |
| | | <option value="1">否</option> |
| | | </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 class="box_tool_min"> |
| | | <div class="center" style=" margin-left:0px;"> |
| | | <div class="left"> |
| | | <div class="right"> |
| | | <div class="padding_top5 padding_left10"> |
| | | |
| | | |
| | | |
| | | |
| | | <a href="javascript:;" onclick="ToBatchPayList();"><span class="icon_edit">确认开票</span></a> |
| | | <div class="box_tool_line"> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="clear"> |
| | | </div> |
| | | </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="70"> |
| | | 申请人 |
| | | </th> |
| | | <th style="text-align: center;"width="150"> |
| | | 收款单位 |
| | | </th> |
| | | <th style="text-align: center;" width="70"> |
| | | 付款用途 |
| | | </th> |
| | | <th width="60"> |
| | | 金额 |
| | | </th> |
| | | <th width="60"> |
| | | 已付金额 |
| | | </th> |
| | | <th width="60"> |
| | | 是否付款 |
| | | </th> |
| | | |
| | | <th width="36"> |
| | | 订单 |
| | | </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;"> |
| | | <%#Eval("Creater")%> |
| | | |
| | | |
| | | </td> |
| | | <td style="text-align: center;"> |
| | | |
| | | <a href='javascript:void(0)' title='点击查看 <%#Eval("SupplierName").ToString()%> 资料' class='a_under' onclick='onView("<%#Eval("SupplierId")%>")'><%#Eval("SupplierName") %></a> |
| | | |
| | | |
| | | |
| | | </td> |
| | | <td style="text-align: center;"> |
| | | <%#Eval("Fukuanyongtu")%> |
| | | |
| | | |
| | | </td> |
| | | <td> |
| | | <%#Eval("Fukuanmoney", "{0:F}")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Yishoumoney", "{0:F}")%> |
| | | </td> |
| | | |
| | | <td style="text-align: center;"> |
| | | <%#Eval("FukuanStatusName")%> |
| | | |
| | | |
| | | </td> |
| | | |
| | | <td> |
| | | |
| | | <a href='javascript:void(0)' title='查看订单' class='a_under' onclick='Viewkaipiao("<%#Eval("Keyid")%>","<%#Eval("DindanId")%>")'> 查看订单 </a> |
| | | |
| | | |
| | | </td> |
| | | |
| | | |
| | | |
| | | |
| | | <td> |
| | | |
| | | |
| | | <a href='javascript:void(0)' title='付款' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>")'> 付款 </a> |
| | | |
| | | </td> |
| | | |
| | | </tr> |
| | | </itemtemplate> |
| | | </asp:repeater> |
| | | </tbody> |
| | | <tr> |
| | | <td colspan="5"> |
| | | 合计 |
| | | </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 Waixiefukuanfukuan : BasePage |
| | | { |
| | | EC_OrderBasicBLL _eC_OrderBasicBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | LF_OrderFileBLL _lF_OrderFileBLL = null; |
| | | EC_OrderBLL _eC_OrderBLL = null; |
| | | OA_FukuanshenqingBLL oA_FukuanshenqingBLL = null; |
| | | |
| | | /// <summary> |
| | | /// 初始化构造 |
| | | /// </summary> |
| | | public Waixiefukuanfukuan() |
| | | { |
| | | _eC_OrderBasicBLL = new EC_OrderBasicBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | _lF_OrderFileBLL = new LF_OrderFileBLL(); |
| | | _eC_OrderBLL = new EC_OrderBLL(); |
| | | oA_FukuanshenqingBLL = new OA_FukuanshenqingBLL(); |
| | | } |
| | | |
| | | /// <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(); |
| | | PayAbout payAbout = new PayAbout(); |
| | | payAbout.LoadNewestPaymentAccount(true); |
| | | double? commission = MyConvert.ConvertToDouble(CY.Config.WebInfo.Instance.FirmOrderAgencyFee); |
| | | int? orderId = string.IsNullOrEmpty(Request["id"]) ? null : MyConvert.ConvertToInt32(Request["id"]); |
| | | if (!orderId.HasValue || !commission.HasValue) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | Response.Write(_eC_OrderBasicBLL.AcceptOrder(orderId.Value, commission.Value) ? "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.txtSQBeginDate.Value = DateTime.Now.AddDays(-14).ToString("yyyy-MM-dd"); |
| | | this.txtSQEndDate.Value = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | this.selPayStates.Value = "1"; |
| | | //初次数据加载 |
| | | 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) |
| | | { |
| | | |
| | | /* if (this.txtCustormerName.Value.Trim() == "") |
| | | { |
| | | Response.Write("客户名称不能为空,请输入客户名称再查询……"); |
| | | return; |
| | | }*/ |
| | | //Dictionary<int, object> searchParam = new Dictionary<int, object>(); |
| | | |
| | | //SetParamValue(searchParam, 1, CurrentUser.MemberId); |
| | | //SetParamValue(searchParam, 2, ""); |
| | | //SetParamValue(searchParam, 3, this.txtCustormerName.Value.Trim()); |
| | | //SetParamValue(searchParam, 4, ""); |
| | | //SetParamValue(searchParam, 5, ""); |
| | | //SetParamValue(searchParam, 6, ""); |
| | | //SetParamValue(searchParam, 7, ""); |
| | | //SetParamValue(searchParam, 8, ""); |
| | | //SetParamValue(searchParam, 9, this.selPayStates.Value); |
| | | //SetParamValue(searchParam, 10, ""); |
| | | //SetParamValue(searchParam, 11, ""); |
| | | //SetParamValue(searchParam, 12, ""); |
| | | //SetParamValue(searchParam, 13, this.selBusinessManager.Value); |
| | | //SetParamValue(searchParam, 14, ""); |
| | | //SetParamValue(searchParam, 15, ""); |
| | | //SetParamValue(searchParam, 16, ""); |
| | | //SetParamValue(searchParam, 18, (CurrentUser.StaffId > 0 ? 1 : 0)); |
| | | //SetParamValue(searchParam, 19, CurrentUser.TrueMemberId); |
| | | //SetParamValue(searchParam, 20, CurrentUser.StaffId); |
| | | //SetParamValue(searchParam, 21, CurrentUser.TrueName); |
| | | |
| | | |
| | | //SetParamValue(searchParam, 22, this.txtSQBeginDate.Value); |
| | | //SetParamValue(searchParam, 23, this.txtSQEndDate.Value); |
| | | //SetParamValue(searchParam, 24, this.selKaipiaoshenqing.Value); |
| | | //SetParamValue(searchParam, 25, this.selKehuqianshou.Value); |
| | | //SearchParam = searchParam; |
| | | |
| | | 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_Fukuanshenqing> result = oA_FukuanshenqingBLL.SelectModelPage(pagination, CurrentUser.MemberId, this.txtSQBeginDate.Value, this.txtSQEndDate.Value, this.txtCreatorName.Value, this.txtCustormerName.Value,this.selPayStates.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.Yishoumoney)); ; |
| | | |
| | | 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 Waixiefukuanfukuan |
| | | { |
| | | |
| | | /// <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> |
| | | /// txtCreatorName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtCreatorName; |
| | | |
| | | /// <summary> |
| | | /// selPayStates 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selPayStates; |
| | | |
| | | /// <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="Waixiefukuanshenqing.aspx.cs" Inherits="CY.WebForm.Pages.business.Waixiefukuanshenqing" %> |
| | | |
| | | <!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"> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | </head> |
| | | <body style="padding:10px"> |
| | | <form runat="server"> |
| | | <table class="tableStyle" > |
| | | |
| | | <tr> |
| | | <td class="ali03">收款单位:</td> |
| | | <td> <select keepdefaultstyle='true' id='selSuppliers' runat="server" datatextfield='Name' datavaluefield='Keyid' onchange='custormerChange(this)' class='Sreq' sign="" selinputhtml="True" style=" width:183px;" > |
| | | </select></td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03">金额:</td> |
| | | <td> <input id='txtZengjianmoney' runat="server" maxlength='18' onblur="validateAmount(event)" placeholder="请输入金额" /></td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03">开户行:</td> |
| | | <td> <input id='txtBank' runat="server" maxlength='50' placeholder="请输入开户行" /></td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03">账号:</td> |
| | | <td> <input id='txtAccountID' runat="server" maxlength='50' placeholder="请输入账号" /></td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03">订单:</td> |
| | | <td> <span id="ordernos" runat="server" ></span></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2"></td> |
| | | </tr> |
| | | <tr id="trbtn" runat="server"> |
| | | <td class="ali02" colspan="2"> |
| | | <asp:Button ID="btn_Submit" Text="提交申请" runat="server" OnClick="btn_Submit_form" /> |
| | | <span style="margin-left:10px"></span> |
| | | <input type="button" value="取消 " onclick="top.Dialog.close()" /> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </form> |
| | | </body> |
| | | <script type="text/javascript" language="javascript"> |
| | | function custormerChange(sel) { |
| | | |
| | | |
| | | |
| | | |
| | | window.submitUrl = '/Pages/business/Waixiefukuanshenqing.aspx'; |
| | | |
| | | CallServer({ Target: "GetSuplier", id: sel.value }, function (data, textStatus) { |
| | | var jobj = false; |
| | | try { |
| | | jobj = eval('[' + data + ']')[0]; |
| | | } catch (ex) { |
| | | global.DealDataException(ex); return; |
| | | } |
| | | if (jobj != '-2') { |
| | | document.getElementById('txtBank').value = jobj.Bank; |
| | | document.getElementById('txtAccountID').value = jobj.AccountID; |
| | | } else { |
| | | document.getElementById('txtBank').value = ""; |
| | | document.getElementById('txtAccountID').value = ""; |
| | | } |
| | | |
| | | |
| | | |
| | | }); |
| | | } |
| | | |
| | | ///新增客户 |
| | | function showCustomer() { |
| | | top.Dialog.open({ URL: "/Pages/procurement/SuppliersEdit.aspx?Keyid='0'&&flasss=ddfffff", Title: "新增供应商", Width: 950, Height: 650 }); |
| | | } |
| | | |
| | | |
| | | //为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;'/><span onclick='showCustomer()' style=\"padding-left:10px;\" class=\"a_under\">新增供应商</span>"; |
| | | $(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); |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | $(function () { |
| | | SelectAddSearch(); |
| | | }); |
| | | |
| | | function validateAmount(event) { |
| | | var input = event.target; |
| | | var value = input.value; |
| | | var regex = /^\d+(\.\d+)?$/; |
| | | |
| | | if (!regex.test(value)) { |
| | | // 输入无效,重置值并将焦点设回文本框 |
| | | input.value = '0'; |
| | | input.focus(); |
| | | alert('请输入有效的正负金额,例如 45.67'); |
| | | } |
| | | } |
| | | </script> |
| | | </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.EC; |
| | | using CY.Model; |
| | | using CY.Infrastructure.Common; |
| | | using CY.BLL.Integrity; |
| | | using CY.BLL; |
| | | using System.Threading.Tasks; |
| | | using System.Transactions; |
| | | using CY.BLL.OA; |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | //吴辉 |
| | | //卖家评价 |
| | | public partial class Waixiefukuanshenqing : BasePage |
| | | { |
| | | EC_OrderBasicBLL bll_EC_OrderBasicBLL = null; |
| | | EC_OrderBLL _eC_OrderBLL = null; |
| | | OA_FukuanshenqingBLL _oA_FukuanshenqingBLL = null; |
| | | OA_CorporateClientsBLL _oA_CorporateClientsBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | OA_WorkPlanBll oA_WorkReminderBll = null; |
| | | OA_SuppliersBLL _OA_SuppliersBLL = null; |
| | | |
| | | |
| | | //初始化 |
| | | public Waixiefukuanshenqing() |
| | | { |
| | | bll_EC_OrderBasicBLL = new EC_OrderBasicBLL(); |
| | | _eC_OrderBLL = new EC_OrderBLL(); |
| | | _oA_CorporateClientsBLL = new OA_CorporateClientsBLL(); |
| | | _oA_FukuanshenqingBLL = new OA_FukuanshenqingBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | oA_WorkReminderBll = new OA_WorkPlanBll(); |
| | | _OA_SuppliersBLL = new OA_SuppliersBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | switch (Request["Target"]) |
| | | { |
| | | case "GetSuplier": |
| | | LoadCommunication(); |
| | | break; |
| | | |
| | | default: |
| | | if (!IsPostBack) |
| | | { |
| | | InitData(); |
| | | } |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | Response.Clear(); |
| | | //Response.Write("-1"); |
| | | Response.Write(ex.Message); |
| | | } |
| | | Response.End(); |
| | | |
| | | } |
| | | |
| | | //绑定数据 |
| | | public void InitData() |
| | | { |
| | | string orderIdStr = Request["id"]; |
| | | string orderNoStr = Request["orderno"]; |
| | | if (!string.IsNullOrEmpty(orderIdStr)) |
| | | { |
| | | this.ordernos.InnerText = orderNoStr.Trim(','); |
| | | //供应商 |
| | | this.selSuppliers.DataSource = _OA_SuppliersBLL.getSupplierTable(CurrentUser.MemberId); |
| | | this.selSuppliers.DataBind(); |
| | | this.selSuppliers.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | decimal total = 0; |
| | | string name = ""; |
| | | //this.txtOrderIds.Value = orderIdStr.Trim(','); |
| | | // string[] idsArray = orderIdStr.Split(','); |
| | | //if (idsArray != null && idsArray.Length > 0) |
| | | //{ |
| | | |
| | | |
| | | // var models = _eC_OrderBLL.GetOrderByIds(orderIdStr).ToList(); |
| | | //if(models!=null&& models.Count > 0) |
| | | //{ |
| | | // var model = bll_EC_OrderBasicBLL.SelectModelById(models[0].Keyid.Value); |
| | | // name = models[0].BuyerName; |
| | | // this.selBusinessManager.Value = model.BusinessManagerId.HasValue? model.BusinessManagerId.Value.ToString():""; |
| | | //} |
| | | //total = models.Sum(x=>x.SumPrice)??0; |
| | | //txtZengjianmoney.Value = "0"; |
| | | |
| | | |
| | | |
| | | //kpmoney.InnerText = total.ToString("0.00"); |
| | | //khname.InnerText = name; |
| | | //Dingdanshu.InnerText = orderIdStr.Split(',').Length +"个"; |
| | | } |
| | | else |
| | | { |
| | | JavaScript.CloseDIVOpener(this); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 加载供应商 |
| | | /// </summary> |
| | | private void LoadCommunication() |
| | | { |
| | | Response.Clear(); |
| | | string id = Request["id"]; |
| | | if (string.IsNullOrEmpty(id)) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | |
| | | var oA_Suppliers = _OA_SuppliersBLL.getSingleSupplier(id); |
| | | |
| | | |
| | | Response.Write(null == oA_Suppliers ? "" : JsonHelper.GetJsonStringByObject(oA_Suppliers)); |
| | | } |
| | | |
| | | //提交事件 |
| | | protected void btn_Submit_form(object sender, EventArgs e) |
| | | { |
| | | AcceptAll3(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 批量开票申请 |
| | | /// </summary> |
| | | public void AcceptAll3() |
| | | { |
| | | |
| | | if (string.IsNullOrEmpty(this.selSuppliers.Value)) |
| | | { |
| | | JavaScript.MessageBox("请选择收款单位!", this); |
| | | return; |
| | | } |
| | | |
| | | if (this.txtZengjianmoney.Value.ToDecimal2()<=0) |
| | | { |
| | | JavaScript.MessageBox("请输入申请金额!", this); |
| | | return; |
| | | } |
| | | string ids = Request["id"].Trim(','); |
| | | string orderNoStr = Request["orderno"].Trim(','); |
| | | string[] idsArray = ids.Split(','); |
| | | if (idsArray != null && idsArray.Length > 0) |
| | | { |
| | | //EC_OrderBasic eC_OrderBasic = bll_EC_OrderBasicBLL.SelectModelById(idsArray[0].ToInt32().Value); |
| | | //OA_CorporateClients oA_CorporateClients = _oA_CorporateClientsBLL.SelectModelByFirmIdandMemberId(CurrentUser.MemberId, eC_OrderBasic.BuyerId); |
| | | using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | | { |
| | | IsolationLevel = IsolationLevel.ReadCommitted, |
| | | Timeout = TransactionManager.MaximumTimeout |
| | | } |
| | | ) |
| | | ) |
| | | { |
| | | |
| | | try |
| | | { |
| | | bool result = false; |
| | | |
| | | OA_Fukuanshenqing oA_Fukuanshenqing = new OA_Fukuanshenqing(); |
| | | |
| | | |
| | | |
| | | oA_Fukuanshenqing.FirmId = CurrentUser.MemberId; |
| | | oA_Fukuanshenqing.SupplierId = this.selSuppliers.Value.ToInt32().Value; |
| | | oA_Fukuanshenqing.Fukuanshenqingstatus = 0; |
| | | oA_Fukuanshenqing.ApprovalStatus = 0; |
| | | oA_Fukuanshenqing.Fukuanmoney = this.txtZengjianmoney.Value.ToDecimal2(); |
| | | |
| | | oA_Fukuanshenqing.Bank = this.txtBank.Value; |
| | | oA_Fukuanshenqing.AccountID = this.txtAccountID.Value; |
| | | oA_Fukuanshenqing.Yishoumoney = 0; |
| | | oA_Fukuanshenqing.Youwufapiao = 0; |
| | | oA_Fukuanshenqing.Fukuanyongtu = "外协加工费"; |
| | | oA_Fukuanshenqing.FukuanStatus = 1 ; |
| | | oA_Fukuanshenqing.remark = ""; |
| | | oA_Fukuanshenqing.DindanId = ids; |
| | | |
| | | |
| | | |
| | | |
| | | oA_Fukuanshenqing.Creater = CurrentUser.ShortName; |
| | | oA_Fukuanshenqing.CreateTime = DateTime.Now; |
| | | oA_Fukuanshenqing.Updater = CurrentUser.ShortName; |
| | | oA_Fukuanshenqing.LastUpdateTime = DateTime.Now; |
| | | |
| | | var id = _oA_FukuanshenqingBLL.InsertModel(oA_Fukuanshenqing); |
| | | |
| | | var oA_Suppliers = _OA_SuppliersBLL.getSingleSupplier(this.selSuppliers.Value); |
| | | var _SupplierName = ""; |
| | | if (oA_Suppliers != null) |
| | | { |
| | | _SupplierName = oA_Suppliers.Name; |
| | | } |
| | | |
| | | //需要添加审批信息 |
| | | DateTime nowTime = DateTime.Now; |
| | | OA_WorkPlan m_OA_WorkPlan = new OA_WorkPlan(); |
| | | m_OA_WorkPlan.ApprovalContent = ""; |
| | | m_OA_WorkPlan.ApprovalStaffId = Guid.Empty; |
| | | m_OA_WorkPlan.ApprovalStaffName = ""; |
| | | m_OA_WorkPlan.ApprovalStatus = 0; |
| | | m_OA_WorkPlan.ApprovalTime = nowTime; |
| | | m_OA_WorkPlan.EvaluationContent = ""; |
| | | m_OA_WorkPlan.EvaluationStaff = ""; |
| | | m_OA_WorkPlan.EvaluationStaffId = Guid.Empty; |
| | | m_OA_WorkPlan.EvaluationStatus = 0; |
| | | m_OA_WorkPlan.EvaluationTime = nowTime; |
| | | m_OA_WorkPlan.RewardContent = ""; |
| | | m_OA_WorkPlan.RewardMoney = 0; |
| | | m_OA_WorkPlan.RewardResult = ""; |
| | | m_OA_WorkPlan.RewardType = 0; |
| | | |
| | | m_OA_WorkPlan.PlanStartTime = nowTime; |
| | | m_OA_WorkPlan.PlanStatus = 1; |
| | | m_OA_WorkPlan.SentStaffId = CurrentUser.TrueMemberId; |
| | | m_OA_WorkPlan.MemberId = CurrentUser.MemberId; |
| | | |
| | | OA_Staff m_OA_Staff = bll_OA_StaffBLL.GetModelByMemberId(CurrentUser.TrueMemberId); |
| | | if (m_OA_Staff != null) |
| | | m_OA_WorkPlan.DepartId = m_OA_Staff.DepartmentId; |
| | | else |
| | | m_OA_WorkPlan.DepartId = 0; |
| | | |
| | | m_OA_WorkPlan.PlanPeople = CurrentUser.TrueName; |
| | | m_OA_WorkPlan.ReciveStaffId = CurrentUser.TrueMemberId; |
| | | |
| | | m_OA_WorkPlan.Operator = CurrentUser.ShortName; |
| | | m_OA_WorkPlan.PlanComplany = id.ToString(); |
| | | m_OA_WorkPlan.PlanContent = orderNoStr + " 外协付款申请。收款单位:"+ _SupplierName; |
| | | m_OA_WorkPlan.PlanDataType = 14; |
| | | m_OA_WorkPlan.PlanMoney = oA_Fukuanshenqing.Fukuanmoney; |
| | | m_OA_WorkPlan.PlanRemark = oA_Fukuanshenqing.remark; |
| | | m_OA_WorkPlan.PlanRunTime = DateTime.Now; |
| | | m_OA_WorkPlan.PlanTitle = orderNoStr + " 外协付款申请"; |
| | | m_OA_WorkPlan.PlanType = 3; |
| | | m_OA_WorkPlan.LastUpdateTime = nowTime; |
| | | result = oA_WorkReminderBll.InsertModel(m_OA_WorkPlan); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | if (!result) |
| | | { |
| | | return; |
| | | } |
| | | //} |
| | | scope.Complete(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | // 回滚事务 |
| | | } |
| | | finally |
| | | { |
| | | // 释放资源 |
| | | scope.Dispose(); |
| | | } |
| | | } |
| | | //JavaScript.MessageBox("提交成功", this); |
| | | |
| | | //操作成功 |
| | | JavaScript.MessageBoxsssss("提交成功", this, true, true); |
| | | } |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | |
| | | |
| | | public partial class Waixiefukuanshenqing |
| | | { |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | /// <summary> |
| | | /// selSuppliers 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selSuppliers; |
| | | |
| | | /// <summary> |
| | | /// txtZengjianmoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtZengjianmoney; |
| | | |
| | | /// <summary> |
| | | /// txtBank 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtBank; |
| | | |
| | | /// <summary> |
| | | /// txtAccountID 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtAccountID; |
| | | |
| | | /// <summary> |
| | | /// ordernos 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl ordernos; |
| | | |
| | | /// <summary> |
| | | /// trbtn 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlTableRow trbtn; |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Submit; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Waixiefukuanweikaipiao.aspx.cs" Inherits="CY.WebForm.Pages.business.Waixiefukuanweikaipiao" %> |
| | | |
| | | |
| | | <!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/WaixiefukuanweikaipiaoEdit.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/WaixiefukuanweikaipiaoEdit.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 }); |
| | | } |
| | | |
| | | } |
| | | //收入确认 |
| | | 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) { |
| | | top.Dialog.open({ URL: "/Pages/business/InvoicingHuikuan.aspx?id=" + personId, Title: "付款登记", Width: 400, Height: 600 }); |
| | | } |
| | | |
| | | |
| | | //查看客户资料 |
| | | function Viewkaipiao(Keyid, SellerOrderId) { |
| | | window.open("/Pages/business/InvoicingOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, '', ''); |
| | | } |
| | | //查看 |
| | | function onView(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/procurement/SuppliersDetail.aspx?Keyid=" + keyid, Title: "查看供应商", Width: 950, Height: 650 }); |
| | | } |
| | | |
| | | |
| | | </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> |
| | | <input id='txtCreatorName' runat="server" maxlength='50' /> |
| | | </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 class="box_tool_min"> |
| | | <div class="center" style=" margin-left:0px;"> |
| | | <div class="left"> |
| | | <div class="right"> |
| | | <div class="padding_top5 padding_left10"> |
| | | |
| | | |
| | | |
| | | |
| | | <a href="javascript:;" onclick="ToBatchPayList();"><span class="icon_edit">确认开票</span></a> |
| | | <div class="box_tool_line"> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="clear"> |
| | | </div> |
| | | </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="70"> |
| | | 申请人 |
| | | </th> |
| | | <th style="text-align: center;"width="150"> |
| | | 收款单位 |
| | | </th> |
| | | <th style="text-align: center;" width="70"> |
| | | 付款用途 |
| | | </th> |
| | | <th width="60"> |
| | | 是否开票 |
| | | </th> |
| | | <th width="60"> |
| | | 金额 |
| | | </th> |
| | | |
| | | |
| | | |
| | | <th width="36"> |
| | | 订单 |
| | | </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;"> |
| | | <%#Eval("Creater")%> |
| | | |
| | | |
| | | </td> |
| | | <td style="text-align: center;"> |
| | | |
| | | |
| | | |
| | | <a href='javascript:void(0)' title='点击查看 <%#Eval("SupplierName").ToString()%> 资料' class='a_under' onclick='onView("<%#Eval("SupplierId")%>")'><%#Eval("SupplierName") %></a> |
| | | |
| | | </td> |
| | | <td style="text-align: center;"> |
| | | <%#Eval("Fukuanyongtu")%> |
| | | |
| | | |
| | | </td> |
| | | <td style="text-align: center;"> |
| | | <%#Eval("YouwufapiaoName")%> |
| | | |
| | | |
| | | </td> |
| | | <td> |
| | | <%#Eval("Fukuanmoney", "{0:F}")%> |
| | | </td> |
| | | |
| | | |
| | | |
| | | |
| | | <td> |
| | | |
| | | <a href='javascript:void(0)' title='查看订单' class='a_under' onclick='Viewkaipiao("<%#Eval("Keyid")%>","<%#Eval("DindanId")%>")'> 查看订单 </a> |
| | | |
| | | |
| | | </td> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </tr> |
| | | </itemtemplate> |
| | | </asp:repeater> |
| | | </tbody> |
| | | <tr> |
| | | <td colspan="6"> |
| | | 合计 |
| | | </td> |
| | | |
| | | |
| | | <td > |
| | | <span id="heji" runat="server" ></span> |
| | | </td> |
| | | |
| | | <td colspan="1"> |
| | | |
| | | </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 Waixiefukuanweikaipiao : BasePage |
| | | { |
| | | EC_OrderBasicBLL _eC_OrderBasicBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | LF_OrderFileBLL _lF_OrderFileBLL = null; |
| | | EC_OrderBLL _eC_OrderBLL = null; |
| | | OA_FukuanshenqingBLL oA_FukuanshenqingBLL = null; |
| | | |
| | | /// <summary> |
| | | /// 初始化构造 |
| | | /// </summary> |
| | | public Waixiefukuanweikaipiao() |
| | | { |
| | | _eC_OrderBasicBLL = new EC_OrderBasicBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | _lF_OrderFileBLL = new LF_OrderFileBLL(); |
| | | _eC_OrderBLL = new EC_OrderBLL(); |
| | | oA_FukuanshenqingBLL = new OA_FukuanshenqingBLL(); |
| | | } |
| | | |
| | | /// <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(); |
| | | PayAbout payAbout = new PayAbout(); |
| | | payAbout.LoadNewestPaymentAccount(true); |
| | | double? commission = MyConvert.ConvertToDouble(CY.Config.WebInfo.Instance.FirmOrderAgencyFee); |
| | | int? orderId = string.IsNullOrEmpty(Request["id"]) ? null : MyConvert.ConvertToInt32(Request["id"]); |
| | | if (!orderId.HasValue || !commission.HasValue) |
| | | { |
| | | Response.Write("-2"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | } |
| | | Response.Write(_eC_OrderBasicBLL.AcceptOrder(orderId.Value, commission.Value) ? "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.txtSQBeginDate.Value = DateTime.Now.AddDays(-14).ToString("yyyy-MM-dd"); |
| | | this.txtSQEndDate.Value = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | |
| | | //初次数据加载 |
| | | 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) |
| | | { |
| | | |
| | | /* if (this.txtCustormerName.Value.Trim() == "") |
| | | { |
| | | Response.Write("客户名称不能为空,请输入客户名称再查询……"); |
| | | return; |
| | | }*/ |
| | | //Dictionary<int, object> searchParam = new Dictionary<int, object>(); |
| | | |
| | | //SetParamValue(searchParam, 1, CurrentUser.MemberId); |
| | | //SetParamValue(searchParam, 2, ""); |
| | | //SetParamValue(searchParam, 3, this.txtCustormerName.Value.Trim()); |
| | | //SetParamValue(searchParam, 4, ""); |
| | | //SetParamValue(searchParam, 5, ""); |
| | | //SetParamValue(searchParam, 6, ""); |
| | | //SetParamValue(searchParam, 7, ""); |
| | | //SetParamValue(searchParam, 8, ""); |
| | | //SetParamValue(searchParam, 9, this.selPayStates.Value); |
| | | //SetParamValue(searchParam, 10, ""); |
| | | //SetParamValue(searchParam, 11, ""); |
| | | //SetParamValue(searchParam, 12, ""); |
| | | //SetParamValue(searchParam, 13, this.selBusinessManager.Value); |
| | | //SetParamValue(searchParam, 14, ""); |
| | | //SetParamValue(searchParam, 15, ""); |
| | | //SetParamValue(searchParam, 16, ""); |
| | | //SetParamValue(searchParam, 18, (CurrentUser.StaffId > 0 ? 1 : 0)); |
| | | //SetParamValue(searchParam, 19, CurrentUser.TrueMemberId); |
| | | //SetParamValue(searchParam, 20, CurrentUser.StaffId); |
| | | //SetParamValue(searchParam, 21, CurrentUser.TrueName); |
| | | |
| | | |
| | | //SetParamValue(searchParam, 22, this.txtSQBeginDate.Value); |
| | | //SetParamValue(searchParam, 23, this.txtSQEndDate.Value); |
| | | //SetParamValue(searchParam, 24, this.selKaipiaoshenqing.Value); |
| | | //SetParamValue(searchParam, 25, this.selKehuqianshou.Value); |
| | | //SearchParam = searchParam; |
| | | |
| | | 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_Fukuanshenqing> result = oA_FukuanshenqingBLL.SelectModelPageweikaipiao(pagination, CurrentUser.MemberId, this.txtSQBeginDate.Value, this.txtSQEndDate.Value, this.txtCreatorName.Value, this.txtCustormerName.Value,""); |
| | | rptData.DataSource = result; |
| | | rptData.DataBind(); |
| | | |
| | | heji.InnerText = String.Format("{0:F2}", result.Sum(x => x.Fukuanmoney)); |
| | | |
| | | |
| | | 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 Waixiefukuanweikaipiao |
| | | { |
| | | |
| | | /// <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> |
| | | /// txtCreatorName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtCreatorName; |
| | | |
| | | /// <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> |
| | | /// UCPager1 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.UCPager UCPager1; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WaixieExpenses.aspx.cs" Inherits="CY.WebForm.Pages.financial.WaixieExpenses" %> |
| | | |
| | | <!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" /> |
| | | </head> |
| | | <body> |
| | | <form id="form1" runat="server" class="form2"> |
| | | <div class="scrollCotent"> |
| | | <table class="tableStyle"> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 应付金额: |
| | | </td> |
| | | <td> |
| | | <input runat="server" id="txtFukuanmoney" type="text" style="width: 259px" readonly="readonly" /> |
| | | <input type="hidden" id="txtSupplierId" runat="server" /> |
| | | <input type="hidden" id="Keyid" runat="server" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 已付金额: |
| | | </td> |
| | | <td> |
| | | <input runat="server" id="txtYishoumoney" type="text" style="width: 259px" readonly="readonly" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 有无发票: |
| | | </td> |
| | | <td> |
| | | <input runat="server" id="txtYouwufapiao" type="text" style="width: 259px" readonly="readonly" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 账户类型: |
| | | </td> |
| | | <td> |
| | | <select class="Sreq" id="selAcoountType" runat="server" datatextfield="Name" datavaluefield="Name" onchange="ChangeThisType(this);" keepdefaultstyle="true" msg="请选择账户类型"> |
| | | </select> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 账户名称: |
| | | </td> |
| | | <td> |
| | | <select class="Sreq" id="selAccountName" runat="server" datatextfield="AccountName" datavaluefield="Keyid" keepdefaultstyle="true" msg="请选择账户名称"> |
| | | <option value="">请选择</option> |
| | | </select> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 科目名称: |
| | | </td> |
| | | <td> |
| | | <select id="selSubject" runat="server" datatextfield="SubjectName" datavaluefield="Keyid" keepdefaultstyle="true" msg="请选择科目名称"> |
| | | </select> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 操作金额: |
| | | </td> |
| | | <td> |
| | | <input runat="server" id="txtMoney" type="text" class=" float req" maxlength="18" min="0" />(元) |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | |
| | | <td class="ali03 "> |
| | | 有无发票: |
| | | </td> |
| | | <td> |
| | | <input type="radio" name='rdoReceiveQuannbu' id='rdoReceiveQuannbu0' value='2' checked="checked" /><label for='rdoReceiveQuannbu0'>有</label> |
| | | <input type="radio" name='rdoReceiveQuannbu' id='rdoReceiveQuannbu1' value='1' /><label for='rdoReceiveQuannbu1'>无</label> |
| | | </td> |
| | | </tr> |
| | | <tr style="display: none"> |
| | | <td class="ali03 "> |
| | | 部门: |
| | | </td> |
| | | <td> |
| | | <input runat="server" id="txtDepartment" maxlength="50" type="text" style="width: 259px" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 收款人(单位): |
| | | </td> |
| | | <td> |
| | | <input runat="server" id="txtPaymentUnit" type="text" style="width: 259px" readonly="readonly" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 摘要: |
| | | </td> |
| | | <td> |
| | | <textarea runat="server" class="req" id="txtOperationalMatters" style="height: 40px" msg="请填写摘要"></textarea> |
| | | </td> |
| | | </tr> |
| | | <tr style="display: none"> |
| | | <td class="ali03 "> |
| | | 备注: |
| | | </td> |
| | | <td> |
| | | <textarea runat="server" id="txtRemark" style="width: 400px;"></textarea> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03"> |
| | | </td> |
| | | <td> |
| | | <asp:Button ID="btn_Submit" Text="提交" runat="server" OnClick="btn_Submit_Click" /> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | </form> |
| | | <script language="javascript" type="text/javascript"> |
| | | function ChangeThisType(obj) { |
| | | $("#selAccountName").html("<option value=''>请选择</option>"); |
| | | $.ajax({ |
| | | url: "/Pages/financial/WaixieExpenses.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")); |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | </script> |
| | | <script type="text/javascript"> |
| | | $(function () { |
| | | ChangeThisType("#selAcoountType"); |
| | | }); |
| | | </script> |
| | | </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.Model; |
| | | using CY.Infrastructure.Common; |
| | | using CY.BLL.OA; |
| | | using CY.BLL.Sys; |
| | | using CY.BLL; |
| | | using System.Transactions; |
| | | |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | public partial class WaixieExpenses : BasePage |
| | | { |
| | | Sys_DictionaryBLL _Sys_DictionaryBLL = null; |
| | | OA_SubjectSetBLL _OA_SubjectSetBLL = null; |
| | | OA_FirmAccountBLL _OA_FirmAccountBLL = null; |
| | | OA_FirmAccountRecordBLL _OA_FirmAccountRecordBLL = null; |
| | | OA_FirmAccountRecord firmAccountRecord = null; |
| | | OA_FirmAccount firmAccount = null; |
| | | OA_FukuanshenqingBLL _fukuanshenqingBLL = null; |
| | | OA_SuppliersBLL oA_SuppliersBLL = null; |
| | | |
| | | public WaixieExpenses() |
| | | { |
| | | firmAccount = new OA_FirmAccount(); |
| | | _Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | _OA_FirmAccountBLL = new OA_FirmAccountBLL(); |
| | | _OA_FirmAccountRecordBLL = new OA_FirmAccountRecordBLL(); |
| | | _OA_SubjectSetBLL = new OA_SubjectSetBLL(); |
| | | firmAccountRecord = new OA_FirmAccountRecord(); |
| | | _fukuanshenqingBLL = new OA_FukuanshenqingBLL(); |
| | | oA_SuppliersBLL = new OA_SuppliersBLL(); |
| | | } |
| | | |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | switch (Request["DataType"]) |
| | | { |
| | | case "change": |
| | | Response.Write(reLoadAccountName(Request["TypeName"].ToString2())); |
| | | break; |
| | | default://一般情况不处理 |
| | | if (IsPostBack || IsCallback) |
| | | return; |
| | | else |
| | | { |
| | | InitialData(); |
| | | } |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | Response.Clear(); |
| | | Response.Write("-1"); |
| | | } |
| | | Response.End(); |
| | | } |
| | | |
| | | protected void InitialData() |
| | | { |
| | | //科目名称 |
| | | selSubject.DataSource = _OA_SubjectSetBLL.getAllSubject(CurrentUser.MemberId, "贷"); |
| | | selSubject.DataBind(); |
| | | selSubject.Items.Insert(0, new ListItem("请选择", "")); |
| | | |
| | | ///账户类型 |
| | | selAcoountType.DataSource = _Sys_DictionaryBLL.GetDataByType("账户类型"); |
| | | selAcoountType.DataBind(); |
| | | |
| | | |
| | | var id = Request["id"]; |
| | | |
| | | var fukuanshenqing = _fukuanshenqingBLL.GetModelByKeyid(id.ToInt32().Value); |
| | | if (fukuanshenqing != null) |
| | | { |
| | | var oA_Suppliers = oA_SuppliersBLL.getSingleSupplier(fukuanshenqing.SupplierId.ToString()); |
| | | this.txtPaymentUnit.Value = oA_Suppliers.Name; |
| | | |
| | | this.Keyid.Value = id; |
| | | this.txtSupplierId.Value = oA_Suppliers.Keyid.ToString(); |
| | | |
| | | this.txtYouwufapiao.Value = fukuanshenqing.YouwufapiaoName; |
| | | |
| | | this.txtFukuanmoney.Value = String.Format("{0:F2}", fukuanshenqing.Fukuanmoney); |
| | | |
| | | this.txtYishoumoney.Value = String.Format("{0:F2}", fukuanshenqing.Yishoumoney); |
| | | |
| | | this.txtMoney.Value = String.Format("{0:F2}", (fukuanshenqing.Fukuanmoney - fukuanshenqing.Yishoumoney)); |
| | | } |
| | | } |
| | | |
| | | protected string reLoadAccountName(string selAcoountType) |
| | | { |
| | | return JsonHelper.GetJsonStringByObject(_OA_FirmAccountBLL.getAllSubject(CurrentUser.MemberId, selAcoountType)); |
| | | } |
| | | |
| | | protected void btn_Submit_Click(object sender, EventArgs e) |
| | | { |
| | | var id = this.Keyid.Value.ToInt32().Value; |
| | | var money = this.txtMoney.Value.ToDecimal2().Value; |
| | | var Youwufapiao = Request["rdoReceiveQuannbu"]; |
| | | var fukuanshenqing = _fukuanshenqingBLL.GetModelByKeyid(id); |
| | | |
| | | if (fukuanshenqing.FukuanStatus == 2 && money>0) |
| | | { |
| | | JavaScript.MessageBox("该申请已经付款结束!", this); |
| | | return; |
| | | } |
| | | |
| | | if (money>(fukuanshenqing.Fukuanmoney - fukuanshenqing.Yishoumoney)) |
| | | { |
| | | JavaScript.MessageBox("操作金额大于剩余应付金额!", this); |
| | | return; |
| | | } |
| | | |
| | | if (fukuanshenqing.Youwufapiao == 2 && Youwufapiao == "1") |
| | | { |
| | | JavaScript.MessageBox("已经保存为有发票,无法修改为无发票!", this); |
| | | return; |
| | | } |
| | | |
| | | |
| | | using (var scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | | { |
| | | IsolationLevel = IsolationLevel.ReadCommitted, |
| | | Timeout = TransactionManager.MaximumTimeout |
| | | } |
| | | )) |
| | | { |
| | | try |
| | | { |
| | | var yishoumoney = fukuanshenqing.Yishoumoney.HasValue ? fukuanshenqing.Yishoumoney.Value : 0; |
| | | fukuanshenqing.Yishoumoney = yishoumoney + money; |
| | | if (money >= (fukuanshenqing.Fukuanmoney - fukuanshenqing.Yishoumoney)) |
| | | { |
| | | fukuanshenqing.FukuanStatus = 2; |
| | | } |
| | | fukuanshenqing.Updater = CurrentUser.ShortName; |
| | | fukuanshenqing.LastUpdateTime = DateTime.Now; |
| | | fukuanshenqing.Youwufapiao = Youwufapiao.ToInt32(); |
| | | var sddd = _fukuanshenqingBLL.UpdateModel(fukuanshenqing); |
| | | |
| | | |
| | | if (money > 0) |
| | | { |
| | | firmAccount = _OA_FirmAccountBLL.getSingleSubject(Request["selAccountName"].ToInt32()); |
| | | |
| | | firmAccountRecord.AccountId = Request["selAccountName"].ToInt32(); |
| | | firmAccountRecord.LastUpdateTime = DateTime.Now; |
| | | firmAccountRecord.Money = this.txtMoney.Value.ToDecimal2(); |
| | | firmAccountRecord.OperationalMatters = this.txtOperationalMatters.Value; |
| | | firmAccountRecord.Operator = CurrentUser.ShortName; |
| | | firmAccountRecord.PaymentUnit = this.txtPaymentUnit.Value; |
| | | firmAccountRecord.RecordTypeId = 2;//支出 |
| | | firmAccountRecord.Remark = this.txtRemark.Value; |
| | | firmAccountRecord.SubjectId = this.selSubject.Value.ToInt32(); |
| | | firmAccountRecord.ResidualAmount = firmAccount.Balance - this.txtMoney.Value.ToDecimal2(); |
| | | firmAccountRecord.Department = this.txtDepartment.Value; |
| | | |
| | | firmAccount.AllExpenses = this.txtMoney.Value.ToDecimal2() + firmAccount.AllExpenses; |
| | | firmAccount.Balance = firmAccount.Balance - this.txtMoney.Value.ToDecimal2(); |
| | | sddd = _OA_FirmAccountRecordBLL.AddModel(firmAccountRecord, firmAccount); |
| | | } |
| | | |
| | | |
| | | |
| | | if (sddd) |
| | | { |
| | | scope.Complete(); |
| | | JavaScript.MessageBox("付款成功", this, true, true); |
| | | } |
| | | else |
| | | JavaScript.MessageBox("付款失败", this); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | JavaScript.MessageBox("付款失败", this); |
| | | } |
| | | finally |
| | | { |
| | | // 释放资源 |
| | | scope.Dispose(); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | |
| | | |
| | | public partial class WaixieExpenses |
| | | { |
| | | |
| | | /// <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> |
| | | /// txtFukuanmoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtFukuanmoney; |
| | | |
| | | /// <summary> |
| | | /// txtSupplierId 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden txtSupplierId; |
| | | |
| | | /// <summary> |
| | | /// Keyid 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden Keyid; |
| | | |
| | | /// <summary> |
| | | /// txtYishoumoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtYishoumoney; |
| | | |
| | | /// <summary> |
| | | /// txtYouwufapiao 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtYouwufapiao; |
| | | |
| | | /// <summary> |
| | | /// selAcoountType 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selAcoountType; |
| | | |
| | | /// <summary> |
| | | /// selAccountName 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selAccountName; |
| | | |
| | | /// <summary> |
| | | /// selSubject 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selSubject; |
| | | |
| | | /// <summary> |
| | | /// txtMoney 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtMoney; |
| | | |
| | | /// <summary> |
| | | /// txtDepartment 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtDepartment; |
| | | |
| | | /// <summary> |
| | | /// txtPaymentUnit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtPaymentUnit; |
| | | |
| | | /// <summary> |
| | | /// txtOperationalMatters 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlTextArea txtOperationalMatters; |
| | | |
| | | /// <summary> |
| | | /// txtRemark 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlTextArea txtRemark; |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Submit; |
| | | } |
| | | } |
| | |
| | | <span id="spanOfficersQQ" runat="server"></span> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td class="ali03 w150px"> |
| | | 开户行: |
| | | </td> |
| | | <td> |
| | | <span id="spanBank" runat="server"></span> |
| | | </td> |
| | | <td class="ali03 "> |
| | | 账号: |
| | | </td> |
| | | <td> |
| | | <span id="spanAccountID" runat="server"></span> |
| | | </td> |
| | | <td class="ali03 "> |
| | | |
| | | </td> |
| | | <td> |
| | | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 业务范围: |
| | |
| | | this.spanDetailedAddress.InnerText = supplier.DetailedAddress; |
| | | this.spanFax.InnerText = supplier.Fax; |
| | | this.spanFinancialOfficers.InnerText = supplier.FinancialOfficers; |
| | | this.spanBank.InnerText = supplier.Bank; |
| | | this.spanAccountID.InnerText = supplier.AccountID; |
| | | this.spanLegalMobile.InnerText = supplier.LegalMobile; |
| | | this.spanLegalQQ.InnerText = supplier.LegalQQ; |
| | | this.spanLegalRepresentative.InnerText = supplier.LegalRepresentative; |
| | |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能会导致不正确的行为,并且如果 |
| | | // 重新生成代码,这些更改将会丢失。 |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.procurement { |
| | | |
| | | |
| | | public partial class SuppliersDetail { |
| | | |
| | | namespace CY.WebForm.Pages.procurement |
| | | { |
| | | |
| | | |
| | | public partial class SuppliersDetail |
| | | { |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanName 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanName; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanSuppliersTypeId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanSuppliersTypeId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanSuppliersLevelId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanSuppliersLevelId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanBusinessLicenseNum 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanBusinessLicenseNum; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanRegisterCapital 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanRegisterCapital; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanCooperativeStateId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanCooperativeStateId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanDetailedAddress 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanDetailedAddress; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanPostcode 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanPostcode; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanWebSite 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanWebSite; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanQQ 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanQQ; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanCompanyPhone 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanCompanyPhone; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanFax 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanFax; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanLegalRepresentative 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanLegalRepresentative; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanLegalMobile 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanLegalMobile; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanLegalQQ 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanLegalQQ; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanBusinessManagers 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanBusinessManagers; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanManagersMobile 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanManagersMobile; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanManagersQQ 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanManagersQQ; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanFinancialOfficers 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanFinancialOfficers; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanOfficersMobile 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanOfficersMobile; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanOfficersQQ 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanOfficersQQ; |
| | | |
| | | |
| | | /// <summary> |
| | | /// spanBank 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanBank; |
| | | |
| | | /// <summary> |
| | | /// spanAccountID 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanAccountID; |
| | | |
| | | /// <summary> |
| | | /// spanBusinessScope 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlTableCell spanBusinessScope; |
| | | |
| | | |
| | | /// <summary> |
| | | /// aBusinessLicenseFileId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlAnchor aBusinessLicenseFileId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// BusinessLicenseFileId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlImage BusinessLicenseFileId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// aOrganizationCodeFileId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlAnchor aOrganizationCodeFileId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// OrganizationCodeFileId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlImage OrganizationCodeFileId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// aTaxRegistrationFileImg 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlAnchor aTaxRegistrationFileImg; |
| | | |
| | | |
| | | /// <summary> |
| | | /// TaxRegistrationFileId 控件。 |
| | | /// </summary> |
| | |
| | | <input id="txtOfficersQQ" type="text" runat="server" class=" " /> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 开户行: |
| | | </td> |
| | | <td> |
| | | <input id="txtBank" type="text" runat="server" class=" " maxlength="50" /> |
| | | </td> |
| | | <td class="ali03 "> |
| | | 账号: |
| | | </td> |
| | | <td> |
| | | <input id="txtAccountID" type="text" runat="server" class=" " maxlength="50" /> |
| | | </td> |
| | | <td class="ali03 "> |
| | | |
| | | </td> |
| | | <td> |
| | | |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="ali03 "> |
| | | 主要业务范围: |
| | |
| | | this.txtName.Value = supplier.Name; |
| | | this.txtOfficersMobile.Value = supplier.OfficersMobile; |
| | | this.txtOfficersQQ.Value = supplier.OfficersQQ; |
| | | this.txtBank.Value = supplier.Bank; |
| | | this.txtAccountID.Value = supplier.AccountID; |
| | | this.txtPostcode.Value = supplier.Postcode; |
| | | this.txtQQ.Value = supplier.QQ; |
| | | this.txtRegisterCapital.Value = supplier.RegisterCapital.ToString2(); |
| | |
| | | supplier.Name = this.txtName.Value; |
| | | supplier.OfficersMobile = this.txtOfficersMobile.Value; |
| | | supplier.OfficersQQ = this.txtOfficersQQ.Value; |
| | | supplier.Bank = this.txtBank.Value; |
| | | supplier.AccountID = this.txtAccountID.Value; |
| | | supplier.Postcode = this.txtPostcode.Value; |
| | | supplier.QQ = this.txtQQ.Value; |
| | | supplier.RegisterCapital = (string.IsNullOrEmpty(this.txtRegisterCapital.Value) ? "0" : this.txtRegisterCapital.Value).ToInt32(); |
| | |
| | | supplier.LastUpdateTime = System.DateTime.Now; |
| | | if (_OA_SuppliersBLL.InsertModel(supplier)) |
| | | { |
| | | JavaScript.MessageBox("新增成功", this,true,true); |
| | | if (!string.IsNullOrEmpty(Request["flasss"])) |
| | | { |
| | | JavaScript.MessageBoxCloseAndRefreshparent("新增成功", this); |
| | | } |
| | | else |
| | | { |
| | | JavaScript.MessageBox("新增成功", this, true, true); |
| | | } |
| | | |
| | | } |
| | | else |
| | | JavaScript.MessageBox("添加失败", this); |
| | |
| | | // <自动生成> |
| | | // 此代码由工具生成。 |
| | | // |
| | | // 对此文件的更改可能会导致不正确的行为,并且如果 |
| | | // 重新生成代码,这些更改将会丢失。 |
| | | // 对此文件的更改可能导致不正确的行为,如果 |
| | | // 重新生成代码,则所做更改将丢失。 |
| | | // </自动生成> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.procurement { |
| | | |
| | | |
| | | public partial class SuppliersEdit { |
| | | |
| | | namespace CY.WebForm.Pages.procurement |
| | | { |
| | | |
| | | |
| | | public partial class SuppliersEdit |
| | | { |
| | | |
| | | /// <summary> |
| | | /// CMSHead1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.CMSHead CMSHead1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// form1 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selSuppliersTypeId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selSuppliersTypeId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selSuppliersLevelId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selSuppliersLevelId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// selCooperativeStateId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlSelect selCooperativeStateId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtName 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtName; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtBusinessLicenseNum 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtBusinessLicenseNum; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtRegisterCapital 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtRegisterCapital; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtDetailedAddress 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtDetailedAddress; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtPostcode 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtPostcode; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtWebSite 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtWebSite; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtCompanyPhone 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtCompanyPhone; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtFax 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtFax; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtQQ 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtQQ; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtLegalRepresentative 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtLegalRepresentative; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtLegalMobile 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtLegalMobile; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtLegalQQ 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtLegalQQ; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtBusinessManagers 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtBusinessManagers; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtManagersMobile 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtManagersMobile; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtManagersQQ 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtManagersQQ; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtFinancialOfficers 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtFinancialOfficers; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtOfficersMobile 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtOfficersMobile; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtOfficersQQ 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtOfficersQQ; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtBank 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtBank; |
| | | |
| | | /// <summary> |
| | | /// txtAccountID 控件。 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 自动生成的字段。 |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtAccountID; |
| | | |
| | | /// <summary> |
| | | /// txtBusinessScope 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlTextArea txtBusinessScope; |
| | | |
| | | |
| | | /// <summary> |
| | | /// BusinessLicenseFileId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputFile BusinessLicenseFileId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// div_Business 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_Business; |
| | | |
| | | |
| | | /// <summary> |
| | | /// aBusinessLicenseFilePic 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlAnchor aBusinessLicenseFilePic; |
| | | |
| | | |
| | | /// <summary> |
| | | /// BusinessLicenseFilePic 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlImage BusinessLicenseFilePic; |
| | | |
| | | |
| | | /// <summary> |
| | | /// OrganizationCodeFileId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputFile OrganizationCodeFileId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// div_Organization 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_Organization; |
| | | |
| | | |
| | | /// <summary> |
| | | /// aOrganizationCodeFileImg 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlAnchor aOrganizationCodeFileImg; |
| | | |
| | | |
| | | /// <summary> |
| | | /// OrganizationCodeFileImg 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlImage OrganizationCodeFileImg; |
| | | |
| | | |
| | | /// <summary> |
| | | /// TaxRegistrationFileId 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputFile TaxRegistrationFileId; |
| | | |
| | | |
| | | /// <summary> |
| | | /// div_Tax 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_Tax; |
| | | |
| | | |
| | | /// <summary> |
| | | /// aTaxRegistrationFileImg 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlAnchor aTaxRegistrationFileImg; |
| | | |
| | | |
| | | /// <summary> |
| | | /// TaxRegistrationFileImg 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlImage TaxRegistrationFileImg; |
| | | |
| | | |
| | | /// <summary> |
| | | /// txtOrderNum 控件。 |
| | | /// </summary> |
| | |
| | | /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtOrderNum; |
| | | |
| | | |
| | | /// <summary> |
| | | /// btn_Submit 控件。 |
| | | /// </summary> |
| | |
| | | <option value="10">业务经费</option> |
| | | <option value="11">客户联谊</option> |
| | | <option value="13">开票申请</option> |
| | | <option value="14">外协付款申请</option> |
| | | <option value="12">其他</option> |
| | | </select> |
| | | </td> |
| | |
| | | <ItemTemplate> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" value='<%#Eval("Keyid")%>' class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13")?"AlreadyReply":""%>' /> |
| | | <input type="checkbox" value='<%#Eval("Keyid")%>' class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13" || Eval("PlanDataType").ToString()=="14")?"AlreadyReply":""%>' /> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Container.ItemIndex + 1+ this.UCPager1.PageSize * (this.UCPager1.PageIndex - 1)%> |
| | |
| | | </td> |
| | | <td class="Operate " style="text-align: center"> |
| | | <span menu_member_case_id="case_PlanView" menu_member_case_name="查看" onclick="onView('<%#Eval("Keyid")%>')">查看</span> |
| | | <span menu_member_case_id="case_PlanEdit" menu_member_case_name="修改" onclick="onEdit('<%#Eval("Keyid")%>')" class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13" )?"AlreadyReply":""%>'>修改</span> |
| | | <span menu_member_case_id="case_PlanDele" menu_member_case_name="删除" onclick="onDele('<%#Eval("Keyid")%>')" class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13" )?"AlreadyReply":""%>'>删除</span> |
| | | <span menu_member_case_id="case_PlanEdit" menu_member_case_name="修改" onclick="onEdit('<%#Eval("Keyid")%>')" class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13" || Eval("PlanDataType").ToString()=="14" )?"AlreadyReply":""%>'>修改</span> |
| | | <span menu_member_case_id="case_PlanDele" menu_member_case_name="删除" onclick="onDele('<%#Eval("Keyid")%>')" class='<%#(Eval("ApprovalStatus").ToString()=="1" || Eval("ApprovalStatus").ToString()=="3" || Eval("PlanDataType").ToString()=="13" || Eval("PlanDataType").ToString()=="14")?"AlreadyReply":""%>'>删除</span> |
| | | </td> |
| | | </tr> |
| | | </ItemTemplate> |
| | |
| | | OA_WorkPlanBll oA_WorkReminderBll = null; |
| | | OA_KaipiaoshenqingBLL _oA_KaipiaoshenqingBLL = null; |
| | | EC_OrderBLL _eC_OrderBLL = null; |
| | | OA_FukuanshenqingBLL _oA_FukuanshenqingBLL = null; |
| | | public RequestReplyAdd() |
| | | { |
| | | oA_WorkReminderBll = new OA_WorkPlanBll(); |
| | | _oA_KaipiaoshenqingBLL = new OA_KaipiaoshenqingBLL(); |
| | | _eC_OrderBLL = new EC_OrderBLL(); |
| | | _oA_FukuanshenqingBLL = new OA_FukuanshenqingBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | if (m_OA_WorkPlan.ApprovalStatus == 1 && m_OA_WorkPlan.PlanDataType == 14) |
| | | {//批准反写 |
| | | var fukuanshenqing = _oA_FukuanshenqingBLL.GetModelByKeyid(m_OA_WorkPlan.PlanComplany.ToInt32().Value); |
| | | fukuanshenqing.ApprovalStatus = 1; |
| | | _oA_FukuanshenqingBLL.UpdateModel(fukuanshenqing); |
| | | } |
| | | |
| | | if (Request["keyid"].ToInt32() > 0) |
| | | { |
| | | if (oA_WorkReminderBll.UpdateModel(m_OA_WorkPlan)) |
| | |
| | | <option value="10">业务经费</option> |
| | | <option value="11">客户联谊</option> |
| | | <option value="13">开票申请</option> |
| | | <option value="14">外协付款申请</option> |
| | | <option value="12">其他</option> |
| | | </select> |
| | | </td> |