Web/ReportMgr/CityWeekReport_New.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CityMgr.Base;
using System.Data;
using RhData;
using System.Text;
using CityMgr.Report;
using System.Transactions;

namespace WebApp.ReportMgr
{
    public partial class CityWeekReport_New : System.Web.UI.Page
    {
        protected LxUserContext m_uct = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            m_uct = Session["UserContext"] as LxUserContext;
            if (m_uct == null)
                Response.Redirect("../Login.aspx");

            AjaxPro.Utility.RegisterTypeForAjax(typeof(CityWeekReport_New));
            AjaxPro.Utility.RegisterTypeForAjax(typeof(LxAjaxEntityHelpper));
            AjaxPro.Utility.RegisterTypeForAjax(typeof(LxAjaxFunction));
            AjaxPro.Utility.RegisterTypeForAjax(typeof(LxEasyUITreeNode));
        }

        /// <summary>
        /// 增加市容周报表
        /// </summary>
        /// <param name="WeekReport">主表对象</param>
        /// <param name="CityRptItem">子表对象</param>
        [AjaxPro.AjaxMethod]
        public void AddCityReport(LxCityWeekReport WeekReport, LxCityReportItem CityRptItem)
        {
            LxUserContext uct = Session["UserContext"] as LxUserContext;
            if (uct == null)
                Response.Redirect("../Login.aspx");

           using(TransactionScope ts= new TransactionScope())
           {
               WeekReport.SbPerson = uct.User;
               WeekReport.SbTime = DateTime.Now;
               WeekReport.ReportCode = LxAjaxFunction.GetMaxCityCode();
               WeekReport.AddData();
              
               if (CityRptItem.WgCode != null)
               {
                   LxStreetScene SS = LxStreetScene.GetData(CityRptItem.WgCode.ID);
                   CityRptItem.WgName = SS.Name;

               }
               if(CityRptItem.LjxCode !=null)
               {
                   LxStreetScene Ljx = LxStreetScene.GetData(CityRptItem.LjxCode.ID);
                   CityRptItem.LjxName = Ljx.Name;
               }
后面还有 34 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。