| | |
| | | OBJECT_PATH.Add(DALInterface.IOA_ShejijijianDAL, "OA_ShejijijianDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_DeliverPlanPaicheDAL, "OA_DeliverPlanPaicheDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_DriverRecordDAL, "OA_DriverRecordDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_ShiJuanBiaoQianDAL, "OA_ShiJuanBiaoQianDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_KaipiaonewDAL, "OA_KaipiaonewDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderDAL, "CoreCmsPlanOrderDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderItemDAL, "CoreCmsPlanOrderItemDAL"); |
| | |
| | | /// </summary> |
| | | IOA_DriverRecordDAL = 1942, |
| | | |
| | | /// <summary> |
| | | /// è¯å·æ ç¾ |
| | | /// </summary> |
| | | IOA_ShiJuanBiaoQianDAL = 1943, |
| | | |
| | | |
| | | /// <summary> |
| | | /// å¼ç¥¨ç³è¯· |
| | |
| | | <Compile Include="OA\OA_PropertyManageBLL.cs" /> |
| | | <Compile Include="OA\OA_PropertyRecordBLL.cs" /> |
| | | <Compile Include="OA\OA_ShejijijianBLL.cs" /> |
| | | <Compile Include="OA\OA_ShiJuanBiaoQianBLL.cs" /> |
| | | <Compile Include="OA\OA_StaffBLL.cs" /> |
| | | <Compile Include="OA\OA_BrandBLL.cs" /> |
| | | <Compile Include="OA\OA_CargoSpaceBLL.cs" /> |
New file |
| | |
| | |  |
| | | /** |
| | | * OA_ShiJuanBiaoQianBLL.cs |
| | | * |
| | | * å è½ï¼ åä½å®¢æ·ä¸å¡é»è¾ç±» |
| | | * ç±» åï¼ OA_ShiJuanBiaoQianBLL |
| | | * |
| | | * 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_ShiJuanBiaoQianBLL |
| | | { |
| | | IOA_ShiJuanBiaoQianDAL _IOA_ShiJuanBiaoQianDAL = null; |
| | | |
| | | /// <summary> |
| | | /// åå§åæé |
| | | /// </summary> |
| | | public OA_ShiJuanBiaoQianBLL() |
| | | { |
| | | //è·åOA_ShiJuanBiaoQian DALå®ç° |
| | | _IOA_ShiJuanBiaoQianDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_ShiJuanBiaoQianDAL) as IOA_ShiJuanBiaoQianDAL; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ°å¢éè´§å®æ |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <param name="m_OA_CustomerCommunications"></param> |
| | | /// <param name="m_EC_AcceptWayByCustomers"></param> |
| | | /// <returns></returns> |
| | | public bool InsertModel(CY.Model.OA_ShiJuanBiaoQian m_OA_ShiJuanBiaoQian) |
| | | { |
| | | try |
| | | { |
| | | |
| | | return _IOA_ShiJuanBiaoQianDAL.InserModel(m_OA_ShiJuanBiaoQian); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¿®æ¹éè´§å®æ |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(CY.Model.OA_ShiJuanBiaoQian m_OA_ShiJuanBiaoQian) |
| | | { |
| | | try |
| | | { |
| | | return _IOA_ShiJuanBiaoQianDAL.UpdateModel(m_OA_ShiJuanBiaoQian); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åå
¨é¨åä½å®¢æ· |
| | | /// </summary> |
| | | /// <param name="Keyid">主é®id</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<OA_ShiJuanBiaoQian> GetModelList() |
| | | { |
| | | Query query = new Query(); |
| | | return _IOA_ShiJuanBiaoQianDAL.SelectAllModel(query); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®formidè·å¾ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="Keyid">ç¼å·</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_ShiJuanBiaoQian> GetModelByformid(Guid formid) |
| | | { |
| | | |
| | | return _IOA_ShiJuanBiaoQianDAL.GetModelByformid(formid); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®idsè·å¾ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="ids">ids</param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_ShiJuanBiaoQian> GetModelByids(string ids) |
| | | { |
| | | |
| | | return _IOA_ShiJuanBiaoQianDAL.GetModelByids(ids); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åå
¨é¨åä½å®¢æ· |
| | | /// </summary> |
| | | /// <param name="Keyid">主é®id</param> |
| | | /// <returns></returns> |
| | | public OA_ShiJuanBiaoQian GetModelByKeyid(Guid? keyid) |
| | | { |
| | | |
| | | return _IOA_ShiJuanBiaoQianDAL.GetModelByKeyid(keyid); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å é¤åä½å®¢æ· |
| | | /// </summary> |
| | | /// <param name="rType"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(CY.Model.OA_ShiJuanBiaoQian rType) |
| | | { |
| | | try |
| | | { |
| | | _IOA_ShiJuanBiaoQianDAL.DeleteModel(rType); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥è¯¢åä½å®¢æ·å页å表 |
| | | /// </summary> |
| | | /// <param name="pa"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<OA_ShiJuanBiaoQian> SelectModelPage(Pagination pa, Guid FirmId, string CreateTimeStart, string CreateTimeEnd, |
| | | string Bianhao, string Quyu, string Xuexiao, string Nianji, string Kemu ) |
| | | { |
| | | string Condition = " and ok.FirmId ='" + FirmId + "' "; |
| | | |
| | | if (!string.IsNullOrEmpty(CreateTimeStart)) |
| | | Condition += " and DATEDIFF(day,ok.[CreateTime],'" + CreateTimeStart + "')<=0 "; |
| | | |
| | | if (!string.IsNullOrEmpty(CreateTimeEnd)) |
| | | Condition += " and DATEDIFF(day,ok.[CreateTime],'" + CreateTimeEnd + "')>=0 "; |
| | | |
| | | if (!string.IsNullOrEmpty(Bianhao)) |
| | | Condition += " and ok.Bianhao like '%" + Bianhao + "%'"; |
| | | |
| | | if (!string.IsNullOrEmpty(Quyu)) |
| | | Condition += " and ok.Quyu like '%" + Quyu + "%'"; |
| | | |
| | | if (!string.IsNullOrEmpty(Xuexiao)) |
| | | Condition += " and ok.Xuexiao like '%" + Xuexiao + "%'"; |
| | | |
| | | if (!string.IsNullOrEmpty(Nianji)) |
| | | Condition += " and ok.Nianji like '%" + Nianji + "%'"; |
| | | |
| | | if (!string.IsNullOrEmpty(Kemu)) |
| | | Condition += " and ok.Kemu like '%" + Kemu + "%'"; |
| | | |
| | | |
| | | Query query = new Query(); |
| | | IList<Criterion> criterias = new List<Criterion>() |
| | | { |
| | | new Criterion("", Condition), |
| | | |
| | | new Criterion("orderBy"," CreateTime desc ") |
| | | }; |
| | | query.Criteria = criterias; |
| | | return _IOA_ShiJuanBiaoQianDAL.SelectModelPage(query, pa); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ç¼å·æ¹éå 餿°æ® |
| | | /// </summary> |
| | | /// <param name="currentOperator">å½åæä½äºº</param> |
| | | /// <param name="ids">ç¼å·éå</param> |
| | | /// <returns></returns> |
| | | public bool DeleteDataByIds(string currentOperator, params int[] ids) |
| | | { |
| | | return _IOA_ShiJuanBiaoQianDAL.DeleteDataByIds(currentOperator, ids); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | <Compile Include="OA\IOA_KaipiaonewDAL.cs" /> |
| | | <Compile Include="OA\IOA_KipiaoshenqingDAL.cs" /> |
| | | <Compile Include="OA\IOA_ShejijijianDAL.cs" /> |
| | | <Compile Include="OA\IOA_ShiJuanBiaoQianDAL.cs" /> |
| | | <Compile Include="OA\IOA_WageAwardPunishDAL.cs" /> |
| | | <Compile Include="LF\ILF_OrderFilesDAL.cs" /> |
| | | <Compile Include="OA\IOA_CarDictionaryDAL.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_ShiJuanBiaoQianDAL : ICommonDAL, IPaging<OA_ShiJuanBiaoQian>, IGetAllModel<OA_ShiJuanBiaoQian> |
| | | { |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ç¼å·è·å¾ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="Keyid">ç¼å·</param> |
| | | /// <returns></returns> |
| | | OA_ShiJuanBiaoQian GetModelByKeyid(Guid? keyid); |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®formidè·å¾ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="Keyid">ç¼å·</param> |
| | | /// <returns></returns> |
| | | IEnumerable<OA_ShiJuanBiaoQian> GetModelByformid(Guid formid); |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®idsè·å¾ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="ids">ids</param> |
| | | /// <returns></returns> |
| | | IEnumerable<OA_ShiJuanBiaoQian> GetModelByids(string ids); |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ç¼å·æ¹éå 餿°æ® |
| | | /// </summary> |
| | | /// <param name="currentOperator">å½åæä½äºº</param> |
| | | /// <param name="ids">ç¼å·éå</param> |
| | | /// <returns></returns> |
| | | bool DeleteDataByIds(string currentOperator, params int[] ids); |
| | | } |
| | | } |
| | |
| | | <Compile Include="OA\OA_PropertyRecord.cs" /> |
| | | <Compile Include="OA\OA_RemittanceAdvice.cs" /> |
| | | <Compile Include="OA\OA_Shejijijian.cs" /> |
| | | <Compile Include="OA\OA_ShiJuanBiaoQian.cs" /> |
| | | <Compile Include="OA\OA_Specification.cs" /> |
| | | <Compile Include="OA\OA_Staff.cs" /> |
| | | <Compile Include="OA\OA_StaffFirmProfile.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_ShiJuanBiaoQian : IAggregateRoot |
| | | { |
| | | |
| | | public OA_ShiJuanBiaoQian() |
| | | { |
| | | } |
| | | #region Model |
| | | /// <summary> |
| | | /// id |
| | | /// </summary> |
| | | public int Keyid { get; set; } |
| | | /// <summary> |
| | | /// FirmId |
| | | /// </summary> |
| | | public Guid FirmId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¼å· |
| | | /// </summary> |
| | | public string Bianhao { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºå |
| | | /// </summary> |
| | | public string Quyu { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 妿 ¡ |
| | | /// </summary> |
| | | public string Xuexiao { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 年级 |
| | | /// </summary> |
| | | public string Nianji { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç§ç® |
| | | /// </summary> |
| | | public string Kemu { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 大 |
| | | /// </summary> |
| | | public string Da { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å° |
| | | /// </summary> |
| | | public string Xiao { 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 ("Bianhao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) |
| | | { |
| | | this.Bianhao = isChange ? MyConvert.ConvertToString(value) : Bianhao; |
| | | theValue = this.Bianhao; |
| | | } |
| | | else if ("Quyu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) |
| | | { |
| | | this.Quyu = isChange ? MyConvert.ConvertToString(value) : Quyu; |
| | | theValue = this.Quyu; |
| | | } |
| | | else if ("Xuexiao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11) |
| | | { |
| | | this.Xuexiao = isChange ? MyConvert.ConvertToString(value) : Xuexiao; |
| | | theValue = this.Xuexiao; |
| | | } |
| | | |
| | | else if ("Nianji".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) |
| | | { |
| | | this.Nianji = isChange ? MyConvert.ConvertToString(value) : Nianji; |
| | | theValue = this.Nianji; |
| | | } |
| | | else if ("Kemu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) |
| | | { |
| | | this.Kemu = isChange ? MyConvert.ConvertToString(value) : Kemu; |
| | | theValue = this.Kemu; |
| | | } |
| | | else if ("Da".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) |
| | | { |
| | | this.Da = isChange ? MyConvert.ConvertToString(value) : Da; |
| | | theValue = this.Da; |
| | | } |
| | | else if ("Xiao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) |
| | | { |
| | | this.Xiao = isChange ? MyConvert.ConvertToString(value) : Xiao; |
| | | theValue = this.Xiao; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | else if ("Creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) |
| | | { |
| | | this.Creater = isChange ? MyConvert.ConvertToString(value) : Creater; |
| | | theValue = this.Creater; |
| | | } |
| | | else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) |
| | | { |
| | | this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime; |
| | | theValue = this.CreateTime; |
| | | } |
| | | else if ("Updater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) |
| | | { |
| | | this.Updater = isChange ? MyConvert.ConvertToString(value) : Updater; |
| | | theValue = this.Updater; |
| | | } |
| | | else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) |
| | | { |
| | | this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; |
| | | theValue = this.LastUpdateTime; |
| | | } |
| | | |
| | | |
| | | return theValue; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | <Compile Include="OA\OA_PropertyManageDAL.cs" /> |
| | | <Compile Include="OA\OA_PropertyRecordDAL.cs" /> |
| | | <Compile Include="OA\OA_ShejijijianDAL.cs" /> |
| | | <Compile Include="OA\OA_ShiJuanBiaoQianDAL.cs" /> |
| | | <Compile Include="OA\OA_StaffFirmProfileDAL.cs" /> |
| | | <Compile Include="OA\OA_StaffPostCategoryDAL.cs" /> |
| | | <Compile Include="OA\OA_StaffPostDAL.cs" /> |
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_ShiJuanBiaoQianDAL : IOA_ShiJuanBiaoQianDAL |
| | | { |
| | | |
| | | private Database _dataBase = null; |
| | | #region 常é |
| | | /// <summary> |
| | | /// æ¥è¯¢ç®æ |
| | | /// </summary> |
| | | const string SELECTTARGET = " t.* "; |
| | | /// <summary> |
| | | /// æ¥è¯¢æ¥æº |
| | | /// </summary> |
| | | const string FROMSOUCEBEFORE = " ( select ok.* " + |
| | | |
| | | " from [OA_ShiJuanBiaoQian] ok " + |
| | | |
| | | " where 0=0 "; |
| | | const string FROMSOUCEEND = ") as t "; |
| | | /// <summary> |
| | | /// å页é»è®¤æåºå段 |
| | | /// </summary> |
| | | const string ORDERBY = " CreateTime desc "; |
| | | #endregion |
| | | public OA_ShiJuanBiaoQianDAL() |
| | | { |
| | | _dataBase = new Database(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ°å¢ |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool InserModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.OA_ShiJuanBiaoQian trueModel = model as Model.OA_ShiJuanBiaoQian; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | SqlParameter CreateTime = null; |
| | | if (trueModel.CreateTime.HasValue) |
| | | { |
| | | CreateTime = new SqlParameter("@CreateTime", trueModel.CreateTime.Value); |
| | | } |
| | | else |
| | | { |
| | | CreateTime = new SqlParameter("@CreateTime", DBNull.Value); |
| | | } |
| | | |
| | | SqlParameter LastUpdateTime = null; |
| | | if (trueModel.LastUpdateTime.HasValue) |
| | | { |
| | | LastUpdateTime = new SqlParameter("@LastUpdateTime", trueModel.LastUpdateTime.Value); |
| | | } |
| | | else |
| | | { |
| | | LastUpdateTime = new SqlParameter("@LastUpdateTime", DBNull.Value); |
| | | } |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | // new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@Bianhao",string.IsNullOrEmpty(trueModel.Bianhao)?"":trueModel.Bianhao), |
| | | |
| | | new SqlParameter("@Quyu",string.IsNullOrEmpty(trueModel.Quyu)?"":trueModel.Quyu), |
| | | new SqlParameter("@Xuexiao",string.IsNullOrEmpty(trueModel.Xuexiao)?"":trueModel.Xuexiao), |
| | | new SqlParameter("@Nianji",string.IsNullOrEmpty(trueModel.Nianji)?"":trueModel.Nianji), |
| | | new SqlParameter("@Kemu",string.IsNullOrEmpty(trueModel.Kemu)?"":trueModel.Kemu), |
| | | new SqlParameter("@Da",string.IsNullOrEmpty(trueModel.Da)?"":trueModel.Da), |
| | | new SqlParameter("@Xiao",string.IsNullOrEmpty(trueModel.Xiao)?"":trueModel.Xiao), |
| | | new SqlParameter("@Creater",string.IsNullOrEmpty(trueModel.Creater)?"":trueModel.Creater), |
| | | CreateTime, |
| | | new SqlParameter("@Updater",string.IsNullOrEmpty(trueModel.Updater)?"":trueModel.Updater), |
| | | LastUpdateTime, |
| | | |
| | | |
| | | |
| | | }; |
| | | string sql = "Insert Into OA_ShiJuanBiaoQian ([FirmId],[Bianhao],[Quyu],[Xuexiao], [Nianji], [Kemu],[Da], [Xiao], [Creater],[CreateTime],[Updater],[LastUpdateTime] )" |
| | | + " Values ( @FirmId,@Bianhao,@Quyu, @Xuexiao, @Nianji, @Kemu, @Da, @Xiao, @Creater,@CreateTime,@Updater,@LastUpdateTime )"; |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¿®æ¹ |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool UpdateModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.OA_ShiJuanBiaoQian trueModel = model as Model.OA_ShiJuanBiaoQian; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | SqlParameter CreateTime = null; |
| | | if (trueModel.CreateTime.HasValue) |
| | | { |
| | | CreateTime = new SqlParameter("@CreateTime", trueModel.CreateTime.Value); |
| | | } |
| | | else |
| | | { |
| | | CreateTime = new SqlParameter("@CreateTime", DBNull.Value); |
| | | } |
| | | |
| | | SqlParameter LastUpdateTime = null; |
| | | if (trueModel.LastUpdateTime.HasValue) |
| | | { |
| | | LastUpdateTime = new SqlParameter("@LastUpdateTime", trueModel.LastUpdateTime.Value); |
| | | } |
| | | else |
| | | { |
| | | LastUpdateTime = new SqlParameter("@LastUpdateTime", DBNull.Value); |
| | | } |
| | | |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | |
| | | new SqlParameter("@Keyid",trueModel.Keyid), |
| | | new SqlParameter("@FirmId",trueModel.FirmId), |
| | | new SqlParameter("@Bianhao",string.IsNullOrEmpty(trueModel.Bianhao)?"":trueModel.Bianhao), |
| | | |
| | | new SqlParameter("@Quyu",string.IsNullOrEmpty(trueModel.Quyu)?"":trueModel.Quyu), |
| | | new SqlParameter("@Xuexiao",string.IsNullOrEmpty(trueModel.Xuexiao)?"":trueModel.Xuexiao), |
| | | new SqlParameter("@Nianji",string.IsNullOrEmpty(trueModel.Nianji)?"":trueModel.Nianji), |
| | | new SqlParameter("@Kemu",string.IsNullOrEmpty(trueModel.Kemu)?"":trueModel.Kemu), |
| | | new SqlParameter("@Da",string.IsNullOrEmpty(trueModel.Da)?"":trueModel.Da), |
| | | new SqlParameter("@Xiao",string.IsNullOrEmpty(trueModel.Xiao)?"":trueModel.Xiao), |
| | | new SqlParameter("@Creater",string.IsNullOrEmpty(trueModel.Creater)?"":trueModel.Creater), |
| | | CreateTime, |
| | | new SqlParameter("@Updater",string.IsNullOrEmpty(trueModel.Updater)?"":trueModel.Updater), |
| | | LastUpdateTime, |
| | | |
| | | |
| | | |
| | | }; |
| | | string sql = "Update OA_ShiJuanBiaoQian Set [FirmId]=@FirmId,[Bianhao]=@Bianhao,[Quyu]=@Quyu,[Xuexiao]=@Xuexiao, [Nianji]=@Nianji, [Kemu]=@Kemu,[Da]=@Da, [Xiao]=@Xiao , [Creater]=@Creater,[CreateTime]=@CreateTime,[Updater]=@Updater,[LastUpdateTime]=@LastUpdateTime where [Keyid] =@Keyid "; |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ç¼å·è·å¾ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="Keyid">ç¼å·</param> |
| | | /// <returns></returns> |
| | | public OA_ShiJuanBiaoQian GetModelByKeyid(Guid? keyid) |
| | | { |
| | | try |
| | | { |
| | | string condition = " "; |
| | | if (!keyid.Equals(Guid.Empty)) |
| | | { |
| | | condition = " Keyid='" + keyid + "'"; |
| | | } |
| | | else |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | // return null;//éè¯¯æ°æ®è¿ä¼ç©º |
| | | |
| | | IList<OA_ShiJuanBiaoQian> result = _dataBase.SelectModel<OA_ShiJuanBiaoQian>("*", "OA_ShiJuanBiaoQian", condition) as IList<OA_ShiJuanBiaoQian>;//æ§è¡æ¥è¯¢ |
| | | |
| | | 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_ShiJuanBiaoQian> SelectAllModel(Infrastructure.Query.Query query) |
| | | { |
| | | return _dataBase.SelectModel<Model.OA_ShiJuanBiaoQian>(" * ", " OA_ShiJuanBiaoQian ") as IList<Model.OA_ShiJuanBiaoQian>;//æ§è¡æ¥è¯¢ |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
¨é¨æ¥è¯¢ |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_ShiJuanBiaoQian> GetModelByformid(Guid FirmId) |
| | | { |
| | | return _dataBase.SelectModel<Model.OA_ShiJuanBiaoQian>(" * ", " OA_ShiJuanBiaoQian ", " FirmId = '" + FirmId + "'") as IList<Model.OA_ShiJuanBiaoQian>;//æ§è¡æ¥è¯¢ |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// å
¨é¨æ¥è¯¢ |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_ShiJuanBiaoQian> GetModelByids(string ids) |
| | | { |
| | | return _dataBase.SelectModel<Model.OA_ShiJuanBiaoQian>(" * ", " OA_ShiJuanBiaoQian ", " Keyid in (" + ids + ")") as IList<Model.OA_ShiJuanBiaoQian>;//æ§è¡æ¥è¯¢ |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ç¼å·æ¹éå 餿°æ® |
| | | /// </summary> |
| | | /// <param name="currentOperator">å½åæä½äºº</param> |
| | | /// <param name="ids">ç¼å·éå</param> |
| | | /// <returns></returns> |
| | | public bool DeleteDataByIds(string currentOperator, params int[] ids) |
| | | { |
| | | return Database.DeleteDataByIds<OA_ShiJuanBiaoQian>(this, currentOperator, ids); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// å页æ¥è¯¢ |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <param name="pagination"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_ShiJuanBiaoQian> 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_ShiJuanBiaoQian>(pagination, SELECTTARGET, fromSouce, orderbys[0], resultOrderBy); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å é¤ |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public bool DeleteModel(Infrastructure.Domain.IAggregateRoot model) |
| | | { |
| | | Model.OA_ShiJuanBiaoQian trueModel = model as Model.OA_ShiJuanBiaoQian; |
| | | if (trueModel == null) |
| | | { |
| | | return false; |
| | | } |
| | | IList<SqlParameter> sqlParms = new List<SqlParameter>() |
| | | { |
| | | new SqlParameter("@Keyid",trueModel.Keyid) |
| | | }; |
| | | string sql = "Delete OA_ShiJuanBiaoQian Where [Keyid] = @Keyid "; |
| | | |
| | | |
| | | try |
| | | { |
| | | _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>()); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | <Content Include="Pages\business\DeliverPlanShifou.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanLishiPrint.aspx" /> |
| | | <Content Include="Pages\business\DeliverPlanPaicheZhuyishixiang.aspx" /> |
| | | <Content Include="Pages\business\ShiJuanBiaoQianPrint.aspx" /> |
| | | <Content Include="Pages\business\OrderSonghuoanchiList.aspx" /> |
| | | <Content Include="Pages\business\OrderUpLoadLiuyang.aspx" /> |
| | | <Content Include="Pages\business\ShiJuanBiaoQianList.aspx" /> |
| | | <Content Include="Pages\business\WaixieOrderPrint.aspx" /> |
| | | <Content Include="Pages\business\Waixiefukuanweikaipiao.aspx" /> |
| | | <Content Include="Pages\business\Waixiefukuanfukuan.aspx" /> |
| | |
| | | <Compile Include="Pages\business\DeliverPlanPaicheZhuyishixiang.aspx.designer.cs"> |
| | | <DependentUpon>DeliverPlanPaicheZhuyishixiang.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\ShiJuanBiaoQianPrint.aspx.cs"> |
| | | <DependentUpon>ShiJuanBiaoQianPrint.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\ShiJuanBiaoQianPrint.aspx.designer.cs"> |
| | | <DependentUpon>ShiJuanBiaoQianPrint.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\OrderSonghuoanchiList.aspx.cs"> |
| | | <DependentUpon>OrderSonghuoanchiList.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | </Compile> |
| | | <Compile Include="Pages\business\OrderUpLoadLiuyang.aspx.designer.cs"> |
| | | <DependentUpon>OrderUpLoadLiuyang.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\ShiJuanBiaoQianList.aspx.cs"> |
| | | <DependentUpon>ShiJuanBiaoQianList.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="Pages\business\ShiJuanBiaoQianList.aspx.designer.cs"> |
| | | <DependentUpon>ShiJuanBiaoQianList.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Pages\business\WaixieOrderPrint.aspx.cs"> |
| | | <DependentUpon>WaixieOrderPrint.aspx</DependentUpon> |
| | |
| | | <None Include="images\admin\Thumbs.db" /> |
| | | <None Include="images\Common\admin\Thumbs.db" /> |
| | | <Content Include="images\jihuageshi\ä¸ä¼ 计å订å.xlsx" /> |
| | | <Content Include="images\jihuageshi\ä¸ä¼ èè¯æ ç¾.xlsx" /> |
| | | <None Include="js\ColorBox\colorbox.ai" /> |
| | | <None Include="js\ColorBox\colorbox.jquery.json" /> |
| | | <None Include="js\ColorBox\component.json" /> |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShiJuanBiaoQianList.aspx.cs" Inherits="CY.WebForm.Pages.financial.ShiJuanBiaoQianList" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head runat="server"> |
| | | <title>ç§ç®è®¾ç½®ç®¡ç</title> |
| | | <uc:CMSHead ID="CMSHead1" runat="server" /> |
| | | <script type="text/javascript"> |
| | | ///æ·»å |
| | | function addModel(orderkeyid) { |
| | | top.Dialog.open({ URL: "/Pages/business/PlanOrderAdd.aspx?Keyid='0'&&orderkeyid=" + orderkeyid, Title: "æ°å¢è®¡å订å", Width: 1100, Height: 900 }); |
| | | } |
| | | |
| | | //æ¥ç |
| | | function onView(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/business/PlanOrderDetail.aspx?Keyid=" + keyid, Title: "æ¥ç计å订å", Width: 1100, Height: 900 }); |
| | | } |
| | | |
| | | //ä¿®æ¹ |
| | | function onEdit(keyid) { |
| | | top.Dialog.open({ URL: "/Pages/business/PlanOrderEdit.aspx?Keyid=" + keyid, Title: "ä¿®æ¹è®¡å订å", Width: 1100, Height: 900 }); |
| | | } |
| | | |
| | | //å é¤ |
| | | function onDelete(keyid) { |
| | | top.Dialog.confirm("ç¡®å®è¦å é¤è¯¥è®°å½åï¼", function () { |
| | | window.location = "/Pages/business/ShiJuanBiaoQianList.aspx?Keyid=" + keyid; |
| | | }); |
| | | } |
| | | |
| | | //æ¥ç |
| | | function checkSelFile() { |
| | | |
| | | |
| | | var oFile = document.getElementById('filesel'); |
| | | if (oFile.value == "") { |
| | | alertMsg('没æéæ©æä»¶'); |
| | | return false; |
| | | |
| | | } |
| | | //debugger; |
| | | //replaceParamVal("deleteKeyIds", ""); |
| | | return true; |
| | | } |
| | | |
| | | //æ¹éå é¤ |
| | | function onAllDelete() { |
| | | var deleteKeyIds = ""; |
| | | $(":checkbox").each( |
| | | function () { |
| | | if ($(this).is(":checked")) { |
| | | deleteKeyIds += $(this).val() + ","; |
| | | } |
| | | } |
| | | ) |
| | | if (deleteKeyIds == "") { |
| | | //top.Dialog.alert("è¯·éæ©è¦å é¤çè®°å½", function () { |
| | | //}); |
| | | alertMsg("è¯·éæ©è¦å é¤çè®°å½"); |
| | | return; |
| | | } |
| | | else { |
| | | deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1); |
| | | |
| | | top.Dialog.confirm("ç¡®å®è¦å 餿éè®°å½åï¼", function () { |
| | | window.submitUrl = "/Pages/business/ShiJuanBiaoQianList.aspx"; //设置å½å页çæäº¤è·¯å¾ |
| | | CallServer({ Target: "BatchDelete", ids: deleteKeyIds }, function (data, textStatus) { |
| | | if ('1' == data) { |
| | | ReLoad(); //å·æ°é¡µé¢ |
| | | } else { |
| | | alertMsg('-1' == data ? 'æä½è¿ç¨ä¸åçå¼å¸¸ï¼è¯·éæ°æä½ï¼' : 'æä½å¤±è´¥ï¼'); |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //å é¤ |
| | | function onDeles(orderid) { |
| | | var deleteKeyIds = ""; |
| | | $(":checkbox").each( |
| | | function () { |
| | | if ($(this).is(":checked")) { |
| | | deleteKeyIds += $(this).val() + ","; |
| | | } |
| | | } |
| | | ) |
| | | if (deleteKeyIds == "") { |
| | | //top.Dialog.alert("è¯·éæ©è¦æå°çè®°å½", function () { |
| | | //}); |
| | | alertMsg("è¯·éæ©è¦æå°çè®°å½"); |
| | | return; |
| | | } |
| | | |
| | | deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1); |
| | | top.Dialog.open({ URL: "/Pages/business/ShiJuanBiaoQianPrint.aspx?orderids=" + deleteKeyIds, Title: "æ¹éæå°éè´§å", Width: 1200, Height: 900 }); |
| | | |
| | | |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <form id="form1" runat="server"> |
| | | <div id="scrollContent"> |
| | | <div class="box1" paneltitle="åè½é¢æ¿" roller="false"> |
| | | <table class="TableNewStyle"> |
| | | <tr> |
| | | <td class="ali03"> |
| | | 导å
¥æ¥æï¼ |
| | | </td> |
| | | <td style="width: 215px"> |
| | | <input id="txtBeginData" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtEndDate" type="text" runat="server" class='date w80px' maxlength='10' /> |
| | | </td> |
| | | <td class="ali03 " style="padding-left: 20px"> |
| | | ç¼å·ï¼ |
| | | </td> |
| | | <td> |
| | | <input id="txtBianhao" type="text" runat="server" /> |
| | | </td> |
| | | <td class="ali03 " style="padding-left: 20px"> |
| | | çåºï¼ |
| | | </td> |
| | | <td> |
| | | <input id="txtQuyu" type="text" runat="server" /> |
| | | </td> |
| | | <td class="ali03 " style="padding-left: 20px"> |
| | | 妿 ¡ï¼ |
| | | </td> |
| | | <td> |
| | | <input id="txtXuexiao" type="text" runat="server" /> |
| | | </td> |
| | | |
| | | <td class="ali03 " style="padding-left: 20px"> |
| | | å¹´çº§ï¼ |
| | | </td> |
| | | <td> |
| | | <input id="txtNianji" type="text" runat="server" /> |
| | | </td> |
| | | <td class="ali03 " style="padding-left: 20px"> |
| | | ç§ç®ï¼ |
| | | </td> |
| | | <td> |
| | | <input id="txtKemu" type="text" runat="server" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <td colspan="12"> |
| | | <asp:Button ID="btn_Register" Text="æ¥è¯¢" runat="server" OnClick="btn_Register_Click" /> |
| | | <input type="hidden" id="HideKeyid" runat="server" /> |
| | | </td> |
| | | |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | <div class="box_tool_min "> |
| | | <div class="center"> |
| | | <div class="left"> |
| | | <div class="right"> |
| | | <div class="padding_top5 padding_left10"> |
| | | <%--<a href="javascript:;" onclick="addModel( )" class="aaddModel" ><span class="icon_add">æ°å¢è®¡å订å</span></a> --%> |
| | | <a href="javascript:;" onclick="onDeles()" ><span class="icon_edit" >æ¹éæå°</span></a> |
| | | <a href="javascript:;" onclick="onAllDelete()" ><span class="icon_delete">æ¹éå é¤</span></a> |
| | | |
| | | |
| | | <a class="aaddModel" href="/images/jihuageshi/ä¸ä¼ èè¯æ ç¾.xlsx"><span class="icon_arr1">ä¸ä¼ 模æ¿</span></a> |
| | | <input type="file" id="filesel" name="__hetongFile" keepdefaultstyle="true" runat="server" text="è¯·éæ©æä»¶" /> |
| | | <asp:Button ID="UpdateFileNew" Text="ä¸ä¼ " runat="server" OnClick="btn_Submit_Click" OnClientClick="return checkSelFile()" /> |
| | | |
| | | |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="clear"> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <asp:Repeater ID="RepSubjeSetctList" runat="server"> |
| | | <HeaderTemplate> |
| | | <table class="tableStyle ali02" useclick="false" usecheckbox="true" sortmode="true"> |
| | | <tr> |
| | | <th width="25"> |
| | | </th> |
| | | <th width="120"> |
| | | 导å
¥æ¥æ |
| | | </th> |
| | | <th width="30" style="text-align: center"> |
| | | ç¼å· |
| | | </th> |
| | | |
| | | <th> |
| | | çåº |
| | | </th> |
| | | <th> |
| | | 妿 ¡ |
| | | </th> |
| | | <th> |
| | | 年级 |
| | | </th> |
| | | <th> |
| | | ç§ç® |
| | | </th> |
| | | <th> |
| | | 大 |
| | | </th> |
| | | <th> |
| | | å° |
| | | </th> |
| | | |
| | | |
| | | |
| | | |
| | | </tr> |
| | | </HeaderTemplate> |
| | | <ItemTemplate> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" value='<%#Eval("Keyid")%>' /> |
| | | </td> |
| | | <td> |
| | | <%#Eval("CreateTime","{0:yyyy-MM-dd}")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Bianhao")%> |
| | | </td> |
| | | |
| | | <td> |
| | | <%#Eval("Quyu")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Xuexiao")%> |
| | | </td> |
| | | |
| | | <td> |
| | | <%#Eval("Nianji")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Kemu")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Da")%> |
| | | </td> |
| | | <td> |
| | | <%#Eval("Xiao")%> |
| | | </td> |
| | | |
| | | </tr> |
| | | </ItemTemplate> |
| | | <FooterTemplate> |
| | | </table> |
| | | </FooterTemplate> |
| | | </asp:Repeater> |
| | | <div id="page"> |
| | | <uc:UCPager ID="UCPager1" runat="server" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL; |
| | | using CY.Model; |
| | | using CY.Infrastructure.Query; |
| | | using CY.Infrastructure.Common; |
| | | using CY.BLL.OA; |
| | | using CY.BLL.Sys; |
| | | using System.IO; |
| | | using NPOI.SS.UserModel; |
| | | using NPOI.XSSF.UserModel; |
| | | using System.Transactions; |
| | | using CY.BLL.EC; |
| | | using CY.BLL.Inquiry; |
| | | using CY.Model.Inquiry; |
| | | |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | public partial class ShiJuanBiaoQianList : BasePage |
| | | { |
| | | |
| | | OA_ShiJuanBiaoQianBLL _ShiJuanBiaoQianBLL = new OA_ShiJuanBiaoQianBLL(); |
| | | |
| | | |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged; |
| | | if (!IsPostBack) |
| | | { |
| | | |
| | | |
| | | BindList(); |
| | | } |
| | | |
| | | if (Request["Target"] != null && Request["Target"] == "BatchDelete") |
| | | { |
| | | CY.WebForm.cs.WebUtil.DeleteData(_ShiJuanBiaoQianBLL.DeleteDataByIds, CurrentUser.ShortName);//è°ç¨éç¨å 餿¹æ³ |
| | | Response.End(); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// å è½½å
¨é¨æ°æ® |
| | | /// </summary> |
| | | private void BindList() |
| | | { |
| | | |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = this.UCPager1.AspNetPager.PageSize; |
| | | pa.PageIndex = this.UCPager1.AspNetPager.CurrentPageIndex; |
| | | |
| | | this.RepSubjeSetctList.DataSource = _ShiJuanBiaoQianBLL.SelectModelPage(pa,CurrentUser.MemberId,this.txtBeginData.Value.Trim(),this.txtEndDate.Value.Trim(), |
| | | this.txtBianhao.Value.Trim(), this.txtQuyu.Value.Trim(), this.txtXuexiao.Value.Trim(), this.txtNianji.Value.Trim(), this.txtKemu.Value.Trim()); |
| | | |
| | | this.RepSubjeSetctList.DataBind(); |
| | | UCPager1.AspNetPager.RecordCount = pa.RecordCount; |
| | | |
| | | } |
| | | |
| | | protected void AspNetPager1_PageChanged(object src, EventArgs e) |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | protected void btn_Register_Click(object sender, EventArgs e) |
| | | { |
| | | BindList(); |
| | | } |
| | | |
| | | |
| | | |
| | | protected void btn_Submit_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | var files = Request.Files; |
| | | if (files.Count <= 0) |
| | | return; |
| | | |
| | | var file = files[0]; |
| | | if (file == null) |
| | | { |
| | | JavaScript.MessageBox("è¯·éæ©æä»¶", this); |
| | | return; |
| | | } |
| | | |
| | | //åå§åä¸ä¼ åæ° |
| | | var maxSize = 1024 * 1024 * 5; //ä¸ä¼ 大å°5M |
| | | |
| | | var fileName = file.FileName; |
| | | var fileExt = Path.GetExtension(fileName).ToLowerInvariant(); |
| | | |
| | | //æ£æ¥å¤§å° |
| | | if (file.ContentLength > maxSize) |
| | | { |
| | | |
| | | JavaScript.MessageBox("ä¸ä¼ æä»¶å¤§å°è¶
è¿éå¶ï¼æå¤§å
许ä¸ä¼ 5M", this); |
| | | return; |
| | | } |
| | | |
| | | string FileTypes = "xlsx";//xls, |
| | | //æ£æ¥æä»¶æ©å±å |
| | | if (string.IsNullOrEmpty(fileExt) || |
| | | Array.IndexOf(FileTypes.Split(','), fileExt.Substring(1).ToLower()) == -1) |
| | | { |
| | | JavaScript.MessageBox("ä¸ä¼ æä»¶æ©å±åæ¯ä¸å
è®¸çæ©å±å,请ä¸ä¼ åç¼å为ï¼" + FileTypes, this); |
| | | return; |
| | | } |
| | | var lie = new List<OA_ShiJuanBiaoQian>(); |
| | | |
| | | using (var fileStream = file.InputStream) |
| | | { |
| | | // 使ç¨HSSFWorkbookæå¼.xlsæ ¼å¼çæä»¶ |
| | | IWorkbook workbook = new XSSFWorkbook(fileStream); |
| | | |
| | | // è·å第ä¸ä¸ªå·¥ä½è¡¨ |
| | | ISheet sheet = workbook.GetSheetAt(0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // è¿ä»£å·¥ä½è¡¨ä¸çææè¡ |
| | | for (int i = 1; i <= sheet.LastRowNum; i++) |
| | | { |
| | | var hang = new OA_ShiJuanBiaoQian(); |
| | | |
| | | |
| | | |
| | | IRow row = sheet.GetRow(i); |
| | | if (row == null) continue; // è·³è¿ç©ºè¡ |
| | | |
| | | |
| | | ICell cell0 = row.GetCell(0); |
| | | if (cell0 == null) |
| | | { |
| | | JavaScript.MessageBox("第" + (i + 1) + "ç¼å·ä¸è½ä¸ºç©º", this); |
| | | return; |
| | | } |
| | | hang.Bianhao = getcellvalue(cell0); |
| | | |
| | | ICell cell1 = row.GetCell(1); |
| | | if (cell1 == null) |
| | | { |
| | | JavaScript.MessageBox("第" + (i + 1) + "çåºä¸è½ä¸ºç©º", this); |
| | | return; |
| | | } |
| | | hang.Quyu = getcellvalue(cell1); |
| | | |
| | | ICell cell2 = row.GetCell(2); |
| | | if (cell2 == null) |
| | | { |
| | | JavaScript.MessageBox("第" + (i + 1) + "妿 ¡ä¸è½ä¸ºç©º", this); |
| | | return; |
| | | } |
| | | hang.Xuexiao = getcellvalue(cell2); |
| | | |
| | | ICell cell3 = row.GetCell(3); |
| | | if (cell3 == null) |
| | | { |
| | | JavaScript.MessageBox("第" + (i + 1) + "年级ä¸è½ä¸ºç©º", this); |
| | | return; |
| | | } |
| | | hang.Nianji = getcellvalue(cell3); |
| | | |
| | | ICell cell4 = row.GetCell(4); |
| | | if (cell4 == null) |
| | | { |
| | | JavaScript.MessageBox("第" + (i + 1) + "ç§ç®ä¸è½ä¸ºç©º", this); |
| | | return; |
| | | } |
| | | hang.Kemu = getcellvalue(cell4); |
| | | |
| | | ICell cell5 = row.GetCell(5); |
| | | if (cell5 == null) |
| | | { |
| | | JavaScript.MessageBox("第" + (i + 1) + "大ä¸è½ä¸ºç©º", this); |
| | | return; |
| | | } |
| | | hang.Da = getcellvalue(cell5); |
| | | |
| | | ICell cell6 = row.GetCell(6); |
| | | if (cell6 == null) |
| | | { |
| | | JavaScript.MessageBox("第" + (i + 1) + "å°ä¸è½ä¸ºç©º", this); |
| | | return; |
| | | } |
| | | hang.Xiao = getcellvalue(cell6); |
| | | lie.Add(hang); |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | | { |
| | | IsolationLevel = IsolationLevel.ReadCommitted, |
| | | Timeout = TransactionManager.MaximumTimeout |
| | | } |
| | | )) |
| | | { |
| | | |
| | | |
| | | if (lie != null && lie.Count > 0) |
| | | { |
| | | var creater= CurrentUser.ShortName; |
| | | var creattiem = DateTime.Now; |
| | | var FirmId = CurrentUser.MemberId; |
| | | for (int j = 0; j < lie.Count; j++) |
| | | { |
| | | |
| | | lie[j].Creater = creater; |
| | | lie[j].Updater = creater; |
| | | lie[j].CreateTime = creattiem; |
| | | lie[j].LastUpdateTime = creattiem; |
| | | lie[j].FirmId = FirmId; |
| | | |
| | | var id = _ShiJuanBiaoQianBLL.InsertModel(lie[j]); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | else |
| | | { |
| | | |
| | | |
| | | JavaScript.MessageBox("è¡¨æ ¼æ æ°æ®", this); |
| | | return; |
| | | } |
| | | scope.Complete(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | JavaScript.MessageBox("ä¸ä¼ æä»¶æå", this); |
| | | BindList(); |
| | | |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 计å订åä¸ä¼ æ¥å£ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public string getcellvalue(ICell cell) |
| | | { |
| | | string cellvalue = ""; |
| | | switch (cell.CellType) |
| | | { |
| | | case CellType.String: |
| | | // Console.WriteLine(cell.StringCellValue); |
| | | cellvalue = cell.StringCellValue.Trim(); |
| | | break; |
| | | case CellType.Numeric: |
| | | //Console.WriteLine(cell.NumericCellValue); |
| | | cellvalue = cell.NumericCellValue.ToString().Trim(); |
| | | break; |
| | | case CellType.Boolean: |
| | | //Console.WriteLine(cell.BooleanCellValue); |
| | | cellvalue = cell.BooleanCellValue.ToString().Trim(); |
| | | break; |
| | | case CellType.Error: |
| | | // Console.WriteLine(cell.ErrorCellValue); |
| | | cellvalue = cell.ErrorCellValue.ToString().Trim(); |
| | | break; |
| | | case CellType.Blank: |
| | | // Console.WriteLine(cell.ErrorCellValue); |
| | | cellvalue = ""; |
| | | break; |
| | | // å¯ä»¥æ·»å å
¶ä»ç±»åçcase |
| | | } |
| | | |
| | | return cellvalue; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <èªå¨çæ> |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¦æ |
| | | // éæ°çæä»£ç ï¼åæåæ´æ¹å°ä¸¢å¤±ã |
| | | // </èªå¨çæ> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.financial |
| | | { |
| | | |
| | | |
| | | public partial class ShiJuanBiaoQianList |
| | | { |
| | | |
| | | /// <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> |
| | | /// txtBeginData æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtBeginData; |
| | | |
| | | /// <summary> |
| | | /// txtEndDate æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtEndDate; |
| | | |
| | | /// <summary> |
| | | /// txtBianhao æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtBianhao; |
| | | |
| | | /// <summary> |
| | | /// txtQuyu æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtQuyu; |
| | | |
| | | /// <summary> |
| | | /// txtXuexiao æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtXuexiao; |
| | | |
| | | /// <summary> |
| | | /// txtNianji æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtNianji; |
| | | |
| | | /// <summary> |
| | | /// txtKemu æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputText txtKemu; |
| | | |
| | | /// <summary> |
| | | /// btn_Register æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button btn_Register; |
| | | |
| | | /// <summary> |
| | | /// HideKeyid æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden HideKeyid; |
| | | |
| | | /// <summary> |
| | | /// filesel æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputFile filesel; |
| | | |
| | | /// <summary> |
| | | /// UpdateFileNew æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Button UpdateFileNew; |
| | | |
| | | /// <summary> |
| | | /// RepSubjeSetctList æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater RepSubjeSetctList; |
| | | |
| | | /// <summary> |
| | | /// UCPager1 æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::CY.WebForm.Pages.common.UCPager UCPager1; |
| | | } |
| | | } |
New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShiJuanBiaoQianPrint.aspx.cs" Inherits="CY.WebForm.Pages.business.ShiJuanBiaoQianPrint" %> |
| | | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head id="Head1" runat="server"> |
| | | <title>订å详æ
</title> |
| | | <script src="../../js/utils/jquery-1.5.1.min.js" type="text/javascript"></script> |
| | | <script src="../../js/common/util.js" type="text/javascript"></script> |
| | | <script src="../../js/common/KeyBehaviorHook.js" type="text/javascript"></script> |
| | | <script src="../../js/common/Printter.js?v=7" type="text/javascript"></script> |
| | | <script src="../../js/common/LodopFuncs.js" type="text/javascript"></script> |
| | | <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" /> |
| | | <!--åå°é¡µé¢start--> |
| | | |
| | | <script type="text/javascript"> |
| | | |
| | | </script> |
| | | </head> |
| | | <body style='padding: 0; margin: 0;' onbeforeprint="OnPrint()" onafterprint="OnPrintOver()"> |
| | | <form id="form1" runat="server"> |
| | | <input type="hidden" runat="server" id="hideOrderId" /> |
| | | |
| | | <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0"> |
| | | <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="/Pages/common/install_lodop32.exe"></embed> |
| | | </object> |
| | | <div id='div_tool' printparams='2,2100,2970,"A4"'> |
| | | </div> |
| | | |
| | | <asp:Repeater runat="server" ID='rptOrder'> |
| | | <ItemTemplate> |
| | | |
| | | <style type="text/css"> |
| | | .dbody { margin: 0; margin-left: auto; margin-right: auto; } |
| | | .dtitle { text-align: center; font-size: 19px; font-weight: bold; margin-top: 10px; margin-bottom: 10px; } |
| | | .dbody table { width: 100%; font-size: 12px; margin-top: 5px; } /* border: 1px solid #dddddd;border-top: 1px #999999 solid;*/ |
| | | .dbody table th, .dbody table td { font-weight: normal; height: 20px; line-height: 20px; vertical-align: middle;/* border: 1px solid #999999;*/ border-top: 0; } |
| | | .dbody table th { background-color: #E0EDF6; font-weight: bold; } |
| | | .dbody table td { border-left: 0; padding-left:2px; } |
| | | .left {text-align: left; } |
| | | #div_tool { text-align: center; } |
| | | </style> |
| | | <table border="0" cellpadding="0" cellspacing="0" style="border: 0;width:100%;"> |
| | | |
| | | <tr> |
| | | |
| | | <td class='left'style="width:100%;line-height:150px;" > |
| | | |
| | | </td> |
| | | |
| | | |
| | | |
| | | </tr> |
| | | <tr> |
| | | |
| | | <td class='left'style="font-size: 120px; text-align: center;width:100%;" > |
| | | <%#Eval("Bianhao")%> <%#Eval("Quyu")%> |
| | | </td> |
| | | |
| | | |
| | | |
| | | </tr> |
| | | |
| | | |
| | | |
| | | <tr> |
| | | <td class='left' style="font-size: 120px; text-align: center;width:100%;" > |
| | | <%#Eval("Xuexiao")%> |
| | | </td> |
| | | |
| | | |
| | | |
| | | |
| | | </tr> |
| | | |
| | | |
| | | <tr> |
| | | |
| | | <td class='left'style="font-size: 36px; text-align: center;width:100%;" > |
| | | <%#Eval("Nianji")%> <%#Eval("Kemu")%> <%#Eval("Da")%> + <%#Eval("Xiao")%> |
| | | </td> |
| | | |
| | | |
| | | |
| | | </tr> |
| | | |
| | | |
| | | |
| | | </table> |
| | | <%#(Container.ItemIndex != (countss-1))?"<div class=\"page-break\"></div>":"" %> |
| | | |
| | | </ItemTemplate> |
| | | </asp:Repeater> |
| | | |
| | | |
| | | |
| | | </form> |
| | | </body> |
| | | </html> |
New file |
| | |
| | | /** |
| | | * ShiJuanBiaoQianPrint.aspx.cs |
| | | * |
| | | * å è½ï¼ 订å详æ
|
| | | * ç±» åï¼ ShiJuanBiaoQianPrint |
| | | * |
| | | * Ver åæ´æ¥æ è´è´£äºº åæ´å
容 |
| | | * âââââââââââââââââââââââââââââââââââ |
| | | * V0.01 2013-4-24 13:25 å´å´å åç |
| | | * V0.02 2013-5-15 18:23 å´å´å ç¼è¾ç颿 ·å¼ |
| | | * V0.03 2013-5-15 15:58 å´å´å å®ææ°æ®è·å |
| | | * V0.04 2013-5-21 14:38 å´å´å å¢å 订åè¿åº¦ |
| | | * V0.05 2013-5-23 9:33 å´å´å ä¿®æ¹ç»§æ¿ç±»ä¸ºé»è®¤ç±»Page使æ¾ç¤ºä¿¡æ¯ä¸åç»å½æ§å¶ |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | * |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | using CY.BLL.EC; |
| | | using CY.Infrastructure.Common; |
| | | using CY.Model; |
| | | using CY.BLL; |
| | | using CY.Model.Inquiry; |
| | | using CY.BLL.Sys; |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | /// <summary> |
| | | /// 订å详æ
|
| | | /// </summary> |
| | | public partial class ShiJuanBiaoQianPrint : BasePage |
| | | { |
| | | OA_ShiJuanBiaoQianBLL _ShiJuanBiaoQianBLL = null; |
| | | public int countss = 0; |
| | | |
| | | //åå§å |
| | | public ShiJuanBiaoQianPrint() |
| | | { |
| | | _ShiJuanBiaoQianBLL = new OA_ShiJuanBiaoQianBLL(); |
| | | } |
| | | /// <summary> |
| | | /// 页é¢å è½½äºä»¶ |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | switch (Request["Target"]) |
| | | { |
| | | case "GetCommunication": |
| | | break; |
| | | default: |
| | | Page_Load_Default(); |
| | | return; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | PAGEHandleException(ex); |
| | | Response.Clear(); |
| | | Response.Write("-1"); |
| | | } |
| | | Response.End(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// é»è®¤å è½½äºä»¶æ¹æ³ |
| | | /// </summary> |
| | | private void Page_Load_Default() |
| | | { |
| | | LoadOrderInfo(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å 载订åä¿¡æ¯ |
| | | /// </summary> |
| | | private bool LoadOrderInfo() |
| | | { |
| | | //å¦ææ¯æ¹éæå° |
| | | string orderIdStr = Request["orderids"]; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | var a_ShiJuanBiaoQians = new List<OA_ShiJuanBiaoQian>(); |
| | | if (!string.IsNullOrEmpty(orderIdStr)) |
| | | { |
| | | var sss = _ShiJuanBiaoQianBLL.GetModelByids(orderIdStr.Trim(',')).ToList(); |
| | | countss = sss.Count; |
| | | rptOrder.DataSource = sss; |
| | | rptOrder.DataBind(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <èªå¨çæ> |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¦æ |
| | | // éæ°çæä»£ç ï¼åæåæ´æ¹å°ä¸¢å¤±ã |
| | | // </èªå¨çæ> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | | |
| | | |
| | | public partial class ShiJuanBiaoQianPrint |
| | | { |
| | | |
| | | /// <summary> |
| | | /// Head1 æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlHead Head1; |
| | | |
| | | /// <summary> |
| | | /// form1 æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | |
| | | /// <summary> |
| | | /// hideOrderId æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlInputHidden hideOrderId; |
| | | |
| | | /// <summary> |
| | | /// rptOrder æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.WebControls.Repeater rptOrder; |
| | | } |
| | | } |