Web/ReportMgr/EnvironmentDailyReport_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 EnvironmentDailyReport_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(EnvironmentDailyReport_New));
            AjaxPro.Utility.RegisterTypeForAjax(typeof(LxAjaxEntityHelpper));
            AjaxPro.Utility.RegisterTypeForAjax(typeof(LxAjaxFunction));
            AjaxPro.Utility.RegisterTypeForAjax(typeof(LxEasyUITreeNode));
        }
        
       
        /// <summary>
        /// 增加市环卫主要内容
        /// </summary>
        /// <param name="AdDailyReport">主表对象</param>
        /// <param name="AdRptItem">子表对象</param>
        [AjaxPro.AjaxMethod]
        public void AddEnvironmentReport(LxEnvironmentDailyReport EnvironmentReport,LxEnvironmentReportItem EnvironmentItem,Dictionary<string,int> ItemValue)
        {
            LxUserContext uct = Session["UserContext"] as LxUserContext;
            if (uct == null)
                Response.Redirect("../Login.aspx");

            using (TransactionScope ts = new TransactionScope())
            {
                EnvironmentReport.SbPerson = uct.User;
                EnvironmentReport.SbTime = DateTime.Now;
                EnvironmentReport.ReportCode = LxAjaxFunction.GetMaxCityCode();
                EnvironmentReport.AddData();

                if (EnvironmentItem.WgCode != null)
                {
                    LxStreetScene SS = LxStreetScene.GetData(EnvironmentItem.WgCode.ID);
                    EnvironmentItem.WgName = SS.Name;

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

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

AI 解读 AI

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

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