Hl.WebMain/AdmPage/BaseBizManage/ServiceInfoEdit-zJavascript.aspx.cs

(开头部分) 9KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;
using Hl.Code;
using Hl.WebMain.Common;

namespace Hl.WebMain.AdmPage.BaseBizManage
{
    public partial class ServiceInfoEdit_zJavascript : System.Web.UI.Page
    {
        public DataModel.BizServiceInfo ServInfo = null;
        public DataModel.BizVehicleInfo McarInfo = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            ServInfo = DataBll.BizServiceInfo.Select(DataConvert.ToInt(Request["ServiceId"], 0));
            McarInfo = DataBll.BizVehicleInfo.Select(ServInfo != null ? ServInfo.VehicleId : DataConvert.ToInt(Request["VehicleId"], 0));
            if (ServInfo == null)
            {
                ServInfo = new DataModel.BizServiceInfo();
                ServInfo.Id = 0;
            }
            if (McarInfo == null)
            {
                McarInfo = new DataModel.BizVehicleInfo();
                McarInfo.Id = 0;
            }
            StringBuilder js = new StringBuilder();
            js.AppendLine("$(document).ready(function(){");
            #region "开始处理"
            if (McarInfo.Id > 0)
            {
                js.AppendLine("");
            }
            if (ServInfo.Id <= 0 && McarInfo.Id > 0)
            {
                string hisRepairInfo = Hl.DataBll.BizServiceInfoOperate.IsNewVehicle(McarInfo.Id) ? "" : ("uicommon.OpenBox({ 'BoxHead': '车辆提示信息', 'BoxPath': '" + SystemHelper.GetCurrentPagePath() + "ServiceInfoEdit-VehicleInfoTips.aspx?vehicleId=" + McarInfo.Id + "', 'BoxWidth': 470, 'BoxHeight': 450 });");
                //二次维修确认
                if (Hl.DataBll.BizServiceInfoOperate.IsSecondVehicleRepair(McarInfo.Id))
                {
                    js.AppendLine("uicommon.OpenBox({ 'BoxHead': '二次维修确认', 'BoxPath': '" + SystemHelper.GetCurrentPagePath() + "ServiceInfoEdit-SecondEnsure.aspx" + "', 'BoxWidth': 200, 'BoxHeight': 140,'CallBack':function(){" + hisRepairInfo + " } });");
                }
                //车辆提示信息
                else
                {
                    js.AppendLine(hisRepairInfo);
                }
            }
            //打印报价单
            if (ServInfo.Id > 0)
            {
                js.AppendLine("$('#ctl00_info_BtnPrintD').bind('click', function () {");
                js.AppendLine("    window.top.myDyd = uicommon.OpunUrl('打印报价单', '/AdmPage/BizPrintDocument/BizServiceQuoteDyd.aspx?ServiceId=" + ServInfo.Id + "', 400, 140);");
                js.AppendLine("    return false;");
                js.AppendLine("});");
后面还有 104 行代码,购买后查看完整代码

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

AI 解读 AI

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

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