Exemplo n.º 1
0
        public ActionResult CompanyInfo(String id)
        {
            CompanyDM Result = new CompanyDM();
            var       list   = CompanyMapper.CompanyInfo(Com.ComPanys(id), Url, Com.CompanyCredit(id));

            Result.UserID                 = list.UserID;
            Result.CompanyName            = list.CompanyName;
            Result.UserRealName           = list.UserRealName;
            Result.UserPhone              = list.UserPhone;
            Result.CompanyStates          = list.CompanyState;
            Result.CompanyLicense         = list.CompanyLicense;
            Result.CompanyQualification   = list.CompanyQualification;
            Result.CompanyClimbCard       = list.CompanyClimbCard;
            Result.CompanyWelderCard      = list.CompanyWelderCard;
            Result.CompanyForkliftCard    = list.CompanyForkliftCard;
            Result.CompanyElectricianCard = list.CompanyElectricianCard;
            Result.CompanySafeCard        = list.CompanySafeCard;
            Result.CompanyInsuranceCard   = list.CompanyInsuranceCard;
            Result.EvalAccident           = list.EvalAccident;
            Result.EvalManagement         = list.EvalManagement;
            Result.EvalQuality            = list.EvalQuality;
            Result.EvalReachRate          = list.EvalReachRate;
            Result.EvalSatisfied          = list.EvalSatisfied;
            return(View(Result));
        }
Exemplo n.º 2
0
        public ActionResult Delete(Qualifications Qua, String UserID)
        {
            CompanyDM Result = new CompanyDM();

            Qua.UserID = UserID;
            try
            {
                Com.QuaDelete(Qua);
            }
            catch (Exception ex)
            {
                Result.msg = ex.Message;
            }
            var list = CompanyMapper.CompanyInfo(Com.ComPanys(UserID), Url, Com.CompanyCredit(UserID));

            Result.CompanyName            = list.CompanyName;
            Result.UserRealName           = list.UserRealName;
            Result.UserPhone              = list.UserPhone;
            Result.CompanyStates          = list.CompanyState;
            Result.CompanyLicense         = list.CompanyLicense;
            Result.CompanyQualification   = list.CompanyQualification;
            Result.CompanyClimbCard       = list.CompanyClimbCard;
            Result.CompanyWelderCard      = list.CompanyWelderCard;
            Result.CompanyForkliftCard    = list.CompanyForkliftCard;
            Result.CompanyElectricianCard = list.CompanyElectricianCard;
            Result.CompanySafeCard        = list.CompanySafeCard;
            Result.CompanyInsuranceCard   = list.CompanyInsuranceCard;
            Result.EvalAccident           = list.EvalAccident;
            Result.EvalManagement         = list.EvalManagement;
            Result.EvalQuality            = list.EvalQuality;
            Result.EvalReachRate          = list.EvalReachRate;
            Result.EvalSatisfied          = list.EvalSatisfied;
            Result.msg = "删除成功";
            return(Json(Result, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
        public ActionResult Pass(String State, String UserID)
        {
            CompanyDM Result = new CompanyDM();

            try
            {
                if (State == "Pass")
                {
                    Com.QuaPass(UserID, CompanyState.Pass);
                    var list = CompanyMapper.CompanyInfo(Com.ComPanys(UserID), Url, Com.CompanyCredit(UserID));
                    Result.UserID                 = UserID;
                    Result.CompanyName            = list.CompanyName;
                    Result.UserRealName           = list.UserRealName;
                    Result.UserPhone              = list.UserPhone;
                    Result.CompanyStates          = list.CompanyState;
                    Result.CompanyLicense         = list.CompanyLicense;
                    Result.CompanyQualification   = list.CompanyQualification;
                    Result.CompanyClimbCard       = list.CompanyClimbCard;
                    Result.CompanyWelderCard      = list.CompanyWelderCard;
                    Result.CompanyForkliftCard    = list.CompanyForkliftCard;
                    Result.CompanyElectricianCard = list.CompanyElectricianCard;
                    Result.CompanySafeCard        = list.CompanySafeCard;
                    Result.CompanyInsuranceCard   = list.CompanyInsuranceCard;
                    Result.EvalAccident           = list.EvalAccident;
                    Result.EvalManagement         = list.EvalManagement;
                    Result.EvalQuality            = list.EvalQuality;
                    Result.EvalReachRate          = list.EvalReachRate;
                    Result.EvalSatisfied          = list.EvalSatisfied;
                    Result.msg = "认证成功";
                }
                if (State == "NoPass")
                {
                    Com.QuaPass(UserID, CompanyState.NoPass);
                    var list = CompanyMapper.CompanyInfo(Com.ComPanys(UserID), Url, Com.CompanyCredit(UserID));
                    Result.CompanyName            = list.CompanyName;
                    Result.UserRealName           = list.UserRealName;
                    Result.UserPhone              = list.UserPhone;
                    Result.CompanyStates          = list.CompanyState;
                    Result.CompanyLicense         = list.CompanyLicense;
                    Result.CompanyQualification   = list.CompanyQualification;
                    Result.CompanyClimbCard       = list.CompanyClimbCard;
                    Result.CompanyWelderCard      = list.CompanyWelderCard;
                    Result.CompanyForkliftCard    = list.CompanyForkliftCard;
                    Result.CompanyElectricianCard = list.CompanyElectricianCard;
                    Result.CompanySafeCard        = list.CompanySafeCard;
                    Result.CompanyInsuranceCard   = list.CompanyInsuranceCard;
                    Result.EvalAccident           = list.EvalAccident;
                    Result.EvalManagement         = list.EvalManagement;
                    Result.EvalQuality            = list.EvalQuality;
                    Result.EvalReachRate          = list.EvalReachRate;
                    Result.EvalSatisfied          = list.EvalSatisfied;
                    Result.msg = "认证失败";
                }
            }
            catch (Exception ex)
            {
                Result.msg = ex.Message;
            }
            return(Json(Result, JsonRequestBehavior.AllowGet));
        }