コード例 #1
0
        /// <summary>
        /// 读取XML文件中的信息,传递到前台进行绑定—出工单
        /// </summary>
        public static PrintTxtValue GetGoWorkPrintTxtValue()
        {
            //调用方法,读取XML
            var indexDic = ReadXml.ReadXmlTitle();
            //构造前段需要显示的信息
            var printTxtValue = new PrintTxtValue
            {
                PrintDateTime = NetworkDateTime.CurrentDateTime().ToString("yyyy-MM-dd HH:mm"),
                Title         = string.IsNullOrEmpty(indexDic["goWork"]) ? "出工单" : indexDic["goWork"],
                CompanyName   = string.IsNullOrEmpty(indexDic["companyName"]) ? "甘肃联众建筑设计有限责任公司" : indexDic["companyName"],
                Remark        = string.IsNullOrEmpty(indexDic["goWorkRemrk"]) ? "暂无备注" : indexDic["goWorkRemrk"]
            };

            return(printTxtValue);
        }
コード例 #2
0
        /// <summary>
        /// 读取XML文件中的信息,传递到前台进行绑定—请假条
        /// </summary>
        public static PrintTxtValue GetLeavePrintTxtValue(string departmentText, bool?thingHoliday, bool?loseHoliday,
                                                          bool?wedHoliday, bool?leaveHoliday, bool?failHoliday, bool?yearHoliday)
        {
            //调用方法,读取XML
            var indexDic = ReadXml.ReadXmlTitle();
            //构造需要显示到前端的信息
            var printTxtValue = new PrintTxtValue
            {
                PrintDateTime = NetworkDateTime.CurrentDateTime().ToString("yyyy-MM-dd HH:mm"),
                Title         = string.IsNullOrEmpty(indexDic["leave"]) ? "请假条" : indexDic["leave"],
                CompanyName   = string.IsNullOrEmpty(indexDic["companyName"]) ? "甘肃联众建筑设计有限责任公司" : indexDic["companyName"],
                Remark        = string.IsNullOrEmpty(indexDic["leaveRemak"]) ? "暂无备注" : indexDic["leaveRemak"],
                DepartMent    = departmentText,
                ThingHoliday  = thingHoliday,
                LoseHoliday   = loseHoliday,
                WedHoliday    = wedHoliday,
                LeaveHoliday  = leaveHoliday,
                FailHoliday   = failHoliday,
                YearHoliday   = yearHoliday
            };

            return(printTxtValue);
        }
コード例 #3
0
ファイル: ReadXml.cs プロジェクト: ichengzi/PrintTools
 /// <summary>
 /// 读取XML文件中的信息,传递到前台进行绑定—请假条
 /// </summary>
 public static PrintTxtValue GetLeavePrintTxtValue(string departmentText, bool? thingHoliday, bool? loseHoliday,
     bool? wedHoliday, bool? leaveHoliday, bool? failHoliday, bool? yearHoliday)
 {
     //调用方法,读取XML
     var indexDic = ReadXml.ReadXmlTitle();
     //构造需要显示到前端的信息
     var printTxtValue = new PrintTxtValue
     {
         PrintDateTime = NetworkDateTime.CurrentDateTime().ToString("yyyy-MM-dd HH:mm"),
         Title = string.IsNullOrEmpty(indexDic["leave"]) ? "请假条" : indexDic["leave"],
         CompanyName = string.IsNullOrEmpty(indexDic["companyName"]) ? "甘肃联众建筑设计有限责任公司" : indexDic["companyName"],
         Remark = string.IsNullOrEmpty(indexDic["leaveRemak"]) ? "暂无备注" : indexDic["leaveRemak"],
         DepartMent = departmentText,
         ThingHoliday = thingHoliday,
         LoseHoliday = loseHoliday,
         WedHoliday = wedHoliday,
         LeaveHoliday = leaveHoliday,
         FailHoliday = failHoliday,
         YearHoliday = yearHoliday
     };
     return printTxtValue;
 }
コード例 #4
0
ファイル: ReadXml.cs プロジェクト: ichengzi/PrintTools
 /// <summary>
 /// 读取XML文件中的信息,传递到前台进行绑定—出工单
 /// </summary>
 public static PrintTxtValue GetGoWorkPrintTxtValue()
 {
     //调用方法,读取XML
     var indexDic = ReadXml.ReadXmlTitle();
     //构造前段需要显示的信息
     var printTxtValue = new PrintTxtValue
     {
         PrintDateTime = NetworkDateTime.CurrentDateTime().ToString("yyyy-MM-dd HH:mm"),
         Title = string.IsNullOrEmpty(indexDic["goWork"]) ? "出工单" : indexDic["goWork"],
         CompanyName = string.IsNullOrEmpty(indexDic["companyName"]) ? "甘肃联众建筑设计有限责任公司" : indexDic["companyName"],
         Remark = string.IsNullOrEmpty(indexDic["goWorkRemrk"]) ? "暂无备注" : indexDic["goWorkRemrk"]
     };
     return printTxtValue;
 }