Ejemplo n.º 1
0
 /// <summary>
 /// 新增、修改
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.EarlyWarningNewsCode = CreateCode.GetTableMaxCode("YJXX", "EarlyWarningNewsCode", "TbEarlyWarningSetUp");
     }
     return(View());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 流程节点审批超时预警定义页面
 /// </summary>
 /// <returns></returns>
 public ActionResult FlowNodeEarlyWarningDefineNew(string type)
 {
     if (type == "add")
     {
         ViewBag.EarlyWarningCode = CreateCode.GetTableMaxCode("EW", "EarlyWarningCode", "TbFlowEarlyWarningCondition");
     }
     return(View());
 }
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.MaterialCode = CreateCode.GetTableMaxCode("MI", "MaterialCode", "TbRawMaterialArchives");
     }
     return(View());
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 新增、修改页面
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.UserName     = base.UserName;
         ViewBag.SupplierCode = CreateCode.GetTableMaxCode("TSC", "SupplierCode", "TbSupplier");
     }
     return(View());
 }
Ejemplo n.º 5
0
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.DischargeCargoCode = CreateCode.GetTableMaxCode("ZDXH", "DischargeCargoCode", "TbSiteDischargeCargo");
         ViewBag.UserName           = base.UserName;
     }
     return(View());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 新增、修改页面
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.UserName  = base.UserName;
         ViewBag.CheckCode = CreateCode.GetTableMaxCode("RYFY", "CheckCode", "TbUserCost");
     }
     return(View());
 }
Ejemplo n.º 7
0
 /// <summary>
 /// 新增、修改页面
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.UserName = base.UserName;
         ViewBag.CarCode  = CreateCode.GetTableMaxCode("CAR", "CarCode", "TbCarInfo");
     }
     return(View());
 }
Ejemplo n.º 8
0
 /// <summary>
 /// 新增、修改页面
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.UserName    = base.UserName;
         ViewBag.InOrderCode = CreateCode.GetTableMaxCode("RK", "InOrderCode", "TbInOrder");
     }
     return(View());
 }
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.SupplyPlanCode = CreateCode.GetTableMaxCode("BCJH", "SupplyPlanCode", "TbRawMaterialMonthDemandSupplyPlan");
         ViewBag.UserName       = base.UserName;
     }
     return(View());
 }
Ejemplo n.º 10
0
 /// <summary>
 /// 新增、修改页面
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.UserName           = base.UserName;
         ViewBag.TakNum             = CreateCode.GetTableMaxCode("PD", "TakNum", "TbStockTaking");
         ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.ProcessFactoryCode;
     }
     return(View());
 }
Ejemplo n.º 11
0
 /// <summary>
 /// 预警条件新增、修改页面
 /// </summary>
 /// <param name="FlowCode"></param>
 /// <param name="FlowNodeCode"></param>
 /// <returns></returns>
 public ActionResult EarlyWarningCriteria(string FlowCode, string FlowNodeCode, string type)
 {
     if (type != "view")
     {
         ViewBag.FlowNodeCode     = FlowNodeCode;
         ViewBag.FlowCode         = FlowCode;
         ViewBag.EarlyWarningCode = CreateCode.GetTableMaxCode("EW", "EarlyWarningCode", "TbFlowEarlyWarningCondition");
     }
     return(View());
 }
 /// <summary>
 /// 新增/编辑页
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.ConsumeCode = CreateCode.GetTableMaxCode("GRXH", "ConsumeCode", "TbPersonnelWorkDayConsume");
         ViewBag.UserName    = base.UserName;
         ViewBag.UserCode    = base.UserCode;
     }
     return(View());
 }
 /// <summary>
 /// 原材料生产领料添加/修改界面
 /// </summary>
 /// <param name="type"></param>
 /// <param name="keyValue"></param>
 /// <returns></returns>
 public ActionResult Form(string type, string keyValue)
 {
     ViewBag.InsertUserCode = base.UserCode;
     ViewBag.InsertUserName = base.UserName;
     ViewBag.keyValue       = keyValue;
     if (type == "add")
     {
         ViewBag.CollarCode = CreateCode.GetTableMaxCode("RM", "CollarCode", "TbRMProductionMaterial");
     }
     return(View());
 }
Ejemplo n.º 14
0
 public HttpResponseMessage GetTableMaxCode()
 {
     try
     {
         var SafeCheckCode = CreateCode.GetTableMaxCode("AQJC", "SafeCheckCode", "TbSafeCheck");
         return(AjaxResult.Success(SafeCheckCode).ToJsonApi());
     }
     catch (Exception)
     {
         return(AjaxResult.Error("操作失败").ToJsonApi());
     }
 }
Ejemplo n.º 15
0
        public HttpResponseMessage GetTableMaxCode()
        {
            var       CheckCode = CreateCode.GetTableMaxCode("FIC", "CheckCode", "TbFireInspection");
            DataTable dt        = new DataTable();

            dt.Columns.Add("CheckCode", typeof(string));
            DataRow dr = dt.NewRow();

            dr["CheckCode"] = CheckCode;
            dt.Rows.Add(dr);
            return(AjaxResult.Success(dt).ToJsonApi());
        }
Ejemplo n.º 16
0
 /// <summary>
 /// 新增/编辑页
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.DistributionCode = CreateCode.GetTableMaxCode("PSZC", "DistributionCode", "TbDistributionEnt");
         ViewBag.UserName         = base.UserName;
         ViewBag.UserCode         = base.UserCode;
         if (!string.IsNullOrWhiteSpace(OperatorProvider.Provider.CurrentUser.ProcessFactoryCode))
         {
             ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.ProcessFactoryCode;
             ViewBag.ProcessFactoryName = OperatorProvider.Provider.CurrentUser.ProcessFactoryName;
         }
     }
     return(View());
 }
Ejemplo n.º 17
0
 /// <summary>
 /// 编辑页
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.SettlementCode = CreateCode.GetTableMaxCode("JJD", "SettlementCode", "TbSettlementOrder");
         ViewBag.UserName       = base.UserName;
         ViewBag.UserCode       = base.UserCode;
     }
     ViewBag.OrgType = OperatorProvider.Provider.CurrentUser.OrgType;
     if (OperatorProvider.Provider.CurrentUser.OrgType == "1")
     {
         ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.ProcessFactoryCode;
         ViewBag.ProcessFactoryName = OperatorProvider.Provider.CurrentUser.ProcessFactoryName;
     }
     return(View());
 }
Ejemplo n.º 18
0
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.DemandPlanCode = CreateCode.GetTableMaxCode("XQJH", "DemandPlanCode", "TbRawMaterialMonthDemandPlan");
         ViewBag.UserName       = base.UserName;
         ViewBag.OrgType        = OperatorProvider.Provider.CurrentUser.OrgType;
         ViewBag.CompanyId      = OperatorProvider.Provider.CurrentUser.CompanyId;
         //获取项目ID
         ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.ProcessFactoryCode;
         ViewBag.ProcessFactoryName = OperatorProvider.Provider.CurrentUser.ProcessFactoryName;
         //获取加工厂地址
         ViewBag.DeliveryAdd = _rawMonthDemPlanLogic.GetCompanyAdd(OperatorProvider.Provider.CurrentUser.ProcessFactoryCode);
     }
     return(View());
 }
Ejemplo n.º 19
0
 /// <summary>
 /// 编辑页
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.UserName    = base.UserName;
         ViewBag.UserCode    = base.UserCode;
         ViewBag.SigninNuber = CreateCode.GetTableMaxCode("QSDZ", "SigninNuber", "TbSignforDuiZhang");
     }
     ViewBag.OrgType = OperatorProvider.Provider.CurrentUser.OrgType;
     if (OperatorProvider.Provider.CurrentUser.OrgType == "1")
     {
         ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.ProcessFactoryCode;
         ViewBag.ProcessFactoryName = OperatorProvider.Provider.CurrentUser.ProcessFactoryName;
     }
     return(View());
 }
Ejemplo n.º 20
0
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.HeSuanCode = CreateCode.GetTableMaxCode("MCHS", "HeSuanCode", "TbMonthCostHeSuan");
         ViewBag.UserName   = base.UserName;
         ViewBag.OrgType    = OperatorProvider.Provider.CurrentUser.OrgType;
         ViewBag.CompanyId  = OperatorProvider.Provider.CurrentUser.CompanyId;
         if (ViewBag.OrgType == "1")
         {
             ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.CompanyId;
             ViewBag.ProcessFactoryName = OperatorProvider.Provider.CurrentUser.ComPanyName;
         }
     }
     return(View());
 }
Ejemplo n.º 21
0
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.HoistingCode = CreateCode.GetTableMaxCode("HS", "HoistingCode", "TbHoistingSafety");
         string factoryCode = "", factoryName = "";
         if (base.CurrentUser.OrgType == "1")
         {
             factoryCode = base.CurrentUser.CompanyId;
             factoryName = base.CurrentUser.ComPanyName;
         }
         ViewBag.FactoryCode = factoryCode;
         ViewBag.FactoryName = factoryName;
     }
     return(View());
 }
Ejemplo n.º 22
0
        /// <summary>
        /// 新增/编辑页
        /// </summary>
        /// <returns></returns>
        public ActionResult Form(string type)
        {
            if (type == "add")
            {
                ViewBag.BatchPlanNum = CreateCode.GetTableMaxCode("PCJH", "BatchPlanNum", "TbFactoryBatchNeedPlan");
                if (ViewBag.OrgType == "1")
                {
                    ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.CompanyId;
                    ViewBag.ProcessFactoryName = OperatorProvider.Provider.CurrentUser.ComPanyName;
                }

                ViewBag.UserName = base.UserName;
                ViewBag.UserCode = base.UserCode;
            }

            return(View());
        }
 /// <summary>
 /// 新增、修改页面
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.UserName  = base.UserName;
         ViewBag.CheckCode = CreateCode.GetTableMaxCode("IUEC", "CheckCode", "TbInterimUseElectricCheck");
         string factoryCode = "", factoryName = "";
         if (base.CurrentUser.OrgType == "1")
         {
             factoryCode = base.CurrentUser.CompanyId;
             factoryName = base.CurrentUser.ComPanyName;
         }
         ViewBag.FactoryCode = factoryCode;
         ViewBag.FactoryName = factoryName;
     }
     return(View());
 }
Ejemplo n.º 24
0
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.DataCode       = CreateCode.GetTableMaxCode("ZLFL", "DataCode", "TbDataManage");
         ViewBag.InsertUserCode = base.UserCode;
         ViewBag.InsertUserName = base.UserName;
         var OrgType = OperatorProvider.Provider.CurrentUser.OrgType;
         if (OrgType == "1")
         {
             ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.CompanyId;
             ViewBag.ProcessFactoryName = OperatorProvider.Provider.CurrentUser.ComPanyName;
         }
         ViewBag.OrgType = OrgType;
     }
     return(View());
 }
 /// <summary>
 /// 新增、修改页面
 /// </summary>
 /// <returns></returns>
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.UserName = base.UserName;
         ViewBag.UserCode = base.UserCode;
         ViewBag.DistributionDeclareCode = CreateCode.GetTableMaxCode("PSFY", "DistributionDeclareCode", "TbDistributionDeclare");
         string factoryCode = "", factoryName = "";
         if (base.CurrentUser.OrgType == "1")
         {
             factoryCode = base.CurrentUser.CompanyId;
             factoryName = base.CurrentUser.ComPanyName;
         }
         ViewBag.FactoryCode = factoryCode;
         ViewBag.FactoryName = factoryName;
     }
     return(View());
 }
Ejemplo n.º 26
0
        public HttpResponseMessage GetTableMaxCode(string UserCode)
        {
            var       ContentCode = CreateCode.GetTableMaxCode("SDM", "ContentCode", "TbSafeDatumManage");
            var       us          = new TbUserRoleLogic().FindUserInfo(UserCode);
            DataTable dt          = new DataTable();

            dt.Columns.Add("ContentCode", typeof(string));
            dt.Columns.Add("OrgType", typeof(string));
            dt.Columns.Add("ComCode", typeof(string));
            dt.Columns.Add("ComName", typeof(string));
            DataRow dr = dt.NewRow();

            dr["ContentCode"] = ContentCode;
            dr["OrgType"]     = us.OrgType;
            dr["ComCode"]     = us.CompanyId;
            dr["ComName"]     = us.ComPanyName;
            dt.Rows.Add(dr);
            return(AjaxResult.Success(dt).ToJsonApi());
        }
Ejemplo n.º 27
0
        /// <summary>
        /// 新增、修改页面
        /// </summary>
        /// <returns></returns>
        public ActionResult Form(string type)
        {
            if (type == "add")
            {
                ViewBag.UserName      = base.UserName;
                ViewBag.SafeCheckCode = CreateCode.GetTableMaxCode("AQJC", "SafeCheckCode", "TbSafeCheck");
                string factoryCode = "", factoryName = "";
                if (base.CurrentUser.OrgType == "1")
                {
                    factoryCode = base.CurrentUser.CompanyId;
                    factoryName = base.CurrentUser.ComPanyName;
                }
                ViewBag.FactoryCode = factoryCode;
                ViewBag.FactoryName = factoryName;
            }
            var safeState = new DataDictionaryLogic().GetDicByCode("SafeState")
                            .Select(p => string.Join(",", string.Format("{0}:{1}", p.DictionaryCode, p.DictionaryText)))
                            .ToJson().ToString().Replace("[", "").Replace("]", "").Replace("\"", "").Replace(",", ";");

            ViewBag.SafeState = safeState;
            return(View());
        }
Ejemplo n.º 28
0
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.MeetingCode = CreateCode.GetTableMaxCode("SAR", "MeetingCode", "TbSafeAccidentReport");
         ViewBag.UserName    = base.UserName;
         ViewBag.UserCode    = base.UserCode;
         var OrgType = OperatorProvider.Provider.CurrentUser.OrgType;
         ViewBag.pfType = OrgType;
         if (OrgType == "1")
         {
             ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.CompanyId;
             ViewBag.ProcessFactoryName = OperatorProvider.Provider.CurrentUser.ComPanyName;
         }
         else
         {
             ViewBag.ProcessFactoryCode = "";
             ViewBag.ProcessFactoryName = "";
         }
     }
     return(View());
 }
Ejemplo n.º 29
0
        /// <summary>
        /// 新增数据
        /// </summary>
        public AjaxResult Insert(TbStorage model)
        {
            if (model == null)
            {
                return(AjaxResult.Warning("参数错误"));
            }
            model.StorageCode    = CreateCode.GetTableMaxCode("CK", "StorageCode", "TbStorage");
            model.InsertUserCode = OperatorProvider.Provider.CurrentUser.UserCode;
            try
            {
                var count = Repository <TbStorage> .Insert(model);

                if (count > 0)
                {
                    return(AjaxResult.Success());
                }
                return(AjaxResult.Error("操作失败"));
            }
            catch (Exception ex)
            {
                return(AjaxResult.Error(ex.ToString()));
            }
        }
Ejemplo n.º 30
0
 public ActionResult Form(string type)
 {
     if (type == "add")
     {
         ViewBag.ContentCode    = CreateCode.GetTableMaxCode("SDM", "ContentCode", "TbSafeDatumManage");
         ViewBag.UserName       = base.UserName;
         ViewBag.UserCode       = base.UserCode;
         ViewBag.SpeechUser     = base.UserCode;
         ViewBag.SpeechUserName = base.UserName;
         var OrgType = OperatorProvider.Provider.CurrentUser.OrgType;
         ViewBag.pfType = OrgType;
         if (OrgType == "1")
         {
             ViewBag.ProcessFactoryCode = OperatorProvider.Provider.CurrentUser.CompanyId;
             ViewBag.ProcessFactoryName = OperatorProvider.Provider.CurrentUser.ComPanyName;
         }
         else
         {
             ViewBag.ProcessFactoryCode = "";
             ViewBag.ProcessFactoryName = "";
         }
     }
     return(View());
 }