/// <summary>
        /// 保存
        /// </summary>
        void BaoCun()
        {
            if (!Privs_SetTourStatus)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "没有操作权限"));
            }

            var info = new EyouSoft.Model.TourStructure.MSetTourStatusInfo();

            info.CompanyId  = SiteUserInfo.CompanyId;
            info.OperatorId = SiteUserInfo.UserId;
            info.Status     = Utils.GetEnumValue <TourStatus>(Utils.GetFormValue("txtStatus"), TourStatus.封团);
            info.TourId     = TourId;
            info.TourType   = Utils.GetEnumValue <TourType>(Utils.GetFormValue(txtTourType.UniqueID), TourType.组团团队);
            info.YuanYin    = Utils.GetFormValue("txtYuanYin");

            if (info.Status == TourStatus.封团)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:不允许的状态变更。"));
            }

            int bllRetCode = new EyouSoft.BLL.TourStructure.BTour().SetTourStatus(info);

            if (bllRetCode == 1)
            {
                RCWE(UtilsCommons.AjaxReturnJson("1", "操作成功。"));
            }
            else
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:不允许的状态变更。"));
            }
        }
Exemple #2
0
        /// <summary>
        /// baocun
        /// </summary>
        void BaoCun()
        {
            if (Request.HttpMethod.ToLower() != "post")
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "异常请求"));
            }

            var bll   = new EyouSoft.BLL.YlStructure.BWz();
            var info1 = new EyouSoft.Model.YlStructure.MWzKvInfo();
            var info2 = new EyouSoft.Model.YlStructure.MWzKvInfo();

            info1.CompanyId  = CurrentUserCompanyID;
            info1.IssueTime  = DateTime.Now;
            info1.K          = EyouSoft.Model.EnumType.YlStructure.WzKvKey.长江游轮合同条款;
            info1.OperatorId = SiteUserInfo.UserId;
            info1.V          = Utils.GetYlEditorText(Request.Form[txtV1.UniqueID]);

            info2.CompanyId  = CurrentUserCompanyID;
            info2.IssueTime  = DateTime.Now;
            info2.K          = EyouSoft.Model.EnumType.YlStructure.WzKvKey.海洋邮轮合同条款;
            info2.OperatorId = SiteUserInfo.UserId;
            info2.V          = Utils.GetYlEditorText(Request.Form[txtV2.UniqueID]);

            bll.SheZhiKvInfo(info1);
            bll.SheZhiKvInfo(info2);

            RCWE(UtilsCommons.AjaxReturnJson("1", "操作成功"));
        }
Exemple #3
0
        /// <summary>
        /// 管理员充值
        /// </summary>
        void PayOther()
        {
            string  userTo = Utils.GetQueryStringValue("a");
            decimal moneys = Utils.GetDecimal(Utils.GetQueryStringValue("m"));
            int     result = new Eyousoft_yhq.BLL.Member().HuiYuangZZ(userTo, moneys);

            if (result < 0)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "充值失败"));
            }
            if (result > 0)
            {
                Eyousoft_yhq.BLL.BConDetaile   ser   = new Eyousoft_yhq.BLL.BConDetaile();
                Eyousoft_yhq.Model.MConDetaile model = new Eyousoft_yhq.Model.MConDetaile();

                model.XFway = (Model.XFfangshi)Eyousoft_yhq.Model.XFfangshi.充值;
                Random rn = new Random();
                model.DingDanBianHao = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiHao      = DateTime.Now.ToString("yyyyMMddHHmm") + rn.Next(10000, 99999).ToString();
                model.JiaoYiShiJian  = DateTime.Now;
                string Mobile    = Utils.GetQueryStringValue("a");
                var    modelUser = new Eyousoft_yhq.BLL.Member().GetModelByName(Mobile);
                model.HuiYuanID = modelUser.UserID;

                model.JiaoYiDuiXiang = modelUser.UserID;
                model.JinE           = moneys;
                model.DDCarrtes      = Eyousoft_yhq.Model.DDleibie.充值订单;
                new Eyousoft_yhq.BLL.BConDetaile().Add(model);
            }
            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "充值成功"));
        }
Exemple #4
0
        protected void save()
        {
            bool   Result = false;
            string dotype = Utils.GetQueryStringValue("dotype");
            string RoleId = Utils.GetQueryStringValue("id");

            EyouSoft.Model.SSOStructure.MGuanLiYuanInfo model = new EyouSoft.Model.SSOStructure.MGuanLiYuanInfo();
            Eyousoft_yhq.BLL.User BComRoleBll = new Eyousoft_yhq.BLL.User();

            int length = Utils.GetFormValues("chk_id").Length;

            for (int i = 0; i < length; i++)
            {
                model.Privs += Utils.GetFormValues("chk_id")[i] + ",";
            }
            if (!string.IsNullOrEmpty(model.Privs))
            {
                model.Privs = model.Privs.Trim(',');
            }


            model.UserId = RoleId;
            Result       = BComRoleBll.UpdatePrivs(model);
            if (Result)
            {
                Response.Write(UtilsCommons.AjaxReturnJson("1", "授权成功!"));
            }
            else
            {
                Response.Write(UtilsCommons.AjaxReturnJson("0", "授权失败!"));
            }


            Response.End();
        }
Exemple #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            bool _IsLogin = EyouSoft.Security.Membership.UserProvider.IsLogin(out SiteUserInfo);

            OrderId          = Utils.GetQueryStringValue("OrderId");
            TourType         = (EyouSoft.Model.EnumType.TourStructure.TourType?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.TourStructure.TourType), Utils.GetQueryStringValue("tourType"));
            IsYouKeQueRenDan = Utils.GetQueryStringValue("ykxc") == "1";

            if (string.IsNullOrEmpty(OrderId) || !TourType.HasValue)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "错误的请求。"));
            }
            if (!_IsLogin)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", "错误的请求:当前未登录。"));
            }

            InitPage();

            if (IsYouKeQueRenDan)
            {
                InitYouKe();
                InitXingCheng();
            }
        }
Exemple #6
0
        /// <summary>
        /// baocun
        /// </summary>
        void BaoCun()
        {
            var info = new EyouSoft.Model.YlStructure.MWzZiXunInfo();

            info.CompanyId  = CurrentUserCompanyID;
            info.IssueTime  = DateTime.Now;
            info.BiaoTi     = Utils.GetFormValue(txtBiaoTi.UniqueID);
            info.OperatorId = SiteUserInfo.UserId;
            info.ZiXunId    = ZiXunId;
            info.NeiRong    = Utils.GetYlEditorText(Request.Form[txtNeiRong.UniqueID]);
            info.LeiXing    = Utils.GetEnumValue <EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing>(Utils.GetFormValue("txtLeiXing"), EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.None);

            int bllRetCode = 0;

            if (string.IsNullOrEmpty(ZiXunId))
            {
                bllRetCode = new EyouSoft.BLL.YlStructure.BWz().InsertZiXun(info);
            }
            else
            {
                bllRetCode = new EyouSoft.BLL.YlStructure.BWz().UpdateZiXun(info);
            }

            if (bllRetCode == 1)
            {
                RCWE(UtilsCommons.AjaxReturnJson("1", "操作成功"));
            }
            else
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败"));
            }
        }
Exemple #7
0
        void BaoCun()
        {
            string hangqiid = Utils.GetQueryStringValue("hangqiid");
            string riqiid   = Utils.GetQueryStringValue("riqiid");
            string riqi     = Utils.GetQueryStringValue("riqi");

            int bllRetCode = new EyouSoft.BLL.YlStructure.BHangQi().QuXiaoHangQiRiQi(hangqiid, riqiid, SiteUserInfo.UserId, Utils.GetDateTime(riqi));

            if (bllRetCode == 1)
            {
                RCWE(UtilsCommons.AjaxReturnJson("1", "操作成功"));
            }
            else if (bllRetCode == -97)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:已经存在预订订单,不可取消"));
            }
            else if (bllRetCode == -96)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:已经发布团购信息,不可取消"));
            }
            else
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败"));
            }
        }
Exemple #8
0
        /// <summary>
        /// get binkeleixing
        /// </summary>
        void GetBinKeLeiXing()
        {
            StringBuilder s = new StringBuilder();

            s.AppendFormat("<option value=\"\">请选择人员类型</option>");

            var hangQiId = Utils.GetQueryStringValue("hangqiid");
            var info     = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQiInfo(hangQiId);

            var chaXun = new EyouSoft.Model.YlStructure.MJiChuXinXiChaXunInfo();

            chaXun.LeiXing       = EyouSoft.Model.EnumType.YlStructure.JiChuXinXiLeiXing.宾客类型;
            chaXun.YouLunLeiXing = EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.长江游轮;

            if (info != null)
            {
                chaXun.YouLunLeiXing = info.LeiXing;
            }

            var items = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetJiChuXinXis(SiteUserInfo.CompanyId, chaXun);

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    s.AppendFormat(" <option value=\"{0}\">{1}</option> ", item.XinXiId, item.MingCheng);
                }
            }

            RCWE(UtilsCommons.AjaxReturnJson("1", "", s.ToString()));
        }
Exemple #9
0
        /// <summary>
        /// 保存
        /// </summary>
        /// <returns></returns>
        private string PageSave()
        {
            string msg = string.Empty;

            //获得保存内容的类型
            EyouSoft.Model.EnumType.ComStructure.ContainProjectType containProjectType = (EyouSoft.Model.EnumType.ComStructure.ContainProjectType)Utils.GetInt(Utils.GetQueryStringValue("proType"));
            EyouSoft.Model.EnumType.ComStructure.ProjectType        projectType        = Utils.GetQueryStringValue("type") == "" ? EyouSoft.Model.EnumType.ComStructure.ProjectType.包含项目 : (EyouSoft.Model.EnumType.ComStructure.ProjectType)Utils.GetInt(Utils.GetQueryStringValue("type"));

            string txtNewInfo = Utils.GetFormValue("txtNewInfo");

            if (txtNewInfo.Trim() == "")
            {
                msg = UtilsCommons.AjaxReturnJson("0", "保存内容不能为空!");
                return(msg);
            }
            EyouSoft.BLL.ComStructure.BComProject   bll   = new EyouSoft.BLL.ComStructure.BComProject();
            EyouSoft.Model.ComStructure.MComProject model = new EyouSoft.Model.ComStructure.MComProject();
            model.CompanyId  = SiteUserInfo.CompanyId;
            model.Content    = txtNewInfo;
            model.IssueTime  = DateTime.Now;
            model.ItemType   = containProjectType;
            model.OperatorId = SiteUserInfo.UserId;
            model.Type       = projectType;
            if (bll.Add(model))
            {
                msg = UtilsCommons.AjaxReturnJson("1", "保存成功!");
            }
            else
            {
                msg = UtilsCommons.AjaxReturnJson("0", "保存失败!");
            }
            return(msg);
        }
Exemple #10
0
        protected void pageSave(string doType)
        {
            string id    = Utils.GetQueryStringValue("id");
            var    model = new EyouSoft.Model.SSOStructure.MGuanLiYuanInfo();

            #region 表单取值
            string getusername    = Utils.GetFormValue(userName.UniqueID);
            string getuserpwd     = Utils.GetFormValue(userPwd.UniqueID);
            string getcontactname = Utils.GetFormValue(ContactName.UniqueID);
            string gettel         = Utils.GetFormValue(tel.UniqueID);
            string getremark      = Utils.GetFormValue(remark.UniqueID);

            #endregion
            #region 实体赋值
            model.Username   = getusername;
            model.MiMa       = getuserpwd;
            model.XingMing   = getcontactname;
            model.Telephone  = gettel;
            model.BeiZhu     = getremark;
            model.CreateTime = DateTime.Now;
            model.IsAdmin    = false;
            string stroldupload = Utils.GetFormValue("hideFileInfo");
            string newupload    = Utils.GetFormValue(this.UploadSeal.ClientHideID);
            if (!string.IsNullOrEmpty(newupload))
            {
                if (!string.IsNullOrEmpty(newupload))
                {
                    model.GongZhangFilepath = newupload.Split('|')[1];
                }
            }
            else
            {
                model.GongZhangFilepath = stroldupload;
            }
            #endregion

            #region 提交保存
            bool   result = false;
            string msg    = "";
            Response.Clear();

            model.LeiXing = Utils.GetEnumValue <Eyousoft_yhq.Model.WebmasterLeiXing>(Utils.GetFormValue("txtLeiXing"), Eyousoft_yhq.Model.WebmasterLeiXing.系统);

            Eyousoft_yhq.BLL.User BLL = new Eyousoft_yhq.BLL.User();
            if (doType == "add")
            {
                result = BLL.Add(model);
                msg    = result ? "添加成功!" : "添加失败!";
                Response.Write(UtilsCommons.AjaxReturnJson(result ? "1" : "0", msg));
            }
            else
            {
                model.UserId = id;
                result       = BLL.Update(model);
                msg          = result ? "修改成功!" : "修改失败!";
                Response.Write(UtilsCommons.AjaxReturnJson(result ? "1" : "0", msg));
            }
            Response.End();
            #endregion
        }
Exemple #11
0
        private string Save(string action, string tid)
        {
            var model = new Model.MArticleClass
            {
                ClassName = Utils.GetFormValue(txtAreaName.UniqueID),
                SortRule  = Utils.GetInt(Utils.GetFormValue(this.txtSort.UniqueID)),
                IsSystem  = (Eyousoft_yhq.Model.ArticleType)Utils.GetInt(Utils.GetFormValue(this.hidIsSystme.UniqueID))
            };

            int r   = 0;
            var bll = new BLL.OtherStructure.BArticleClass();

            if (action == "edit")
            {
                model.ClassId = Utils.GetInt(tid);

                r = bll.Update(model) ? 1 : -2;
            }
            else
            {
                r = bll.Add(model) ? 1 : -2;
            }

            switch (r)
            {
            case 0:
                return(UtilsCommons.AjaxReturnJson("0", "url错误,请重新打开此窗口操作!"));

            case 1:
                return(UtilsCommons.AjaxReturnJson("1", "保存成功!"));

            default:
                return(UtilsCommons.AjaxReturnJson("0", "保存失败!"));
            }
        }
        private string SelectProduct()
        {
            string str = ""; string strid = "0";

            string json = Utils.GetFormValue("txt");

            if (!string.IsNullOrEmpty(json))
            {
                var info = Newtonsoft.Json.JsonConvert.DeserializeObject <MrTuanGouList>(json);
                Page1Info(info);
                if (info.DingdanRenShu > 0)
                {
                    str = "成功"; strid = "1";
                }
                else
                {
                    str = "-请选择游客人数!"; strid = "0";
                    return(UtilsCommons.AjaxReturnJson(strid, str));
                }
                return(UtilsCommons.AjaxReturnJson(strid, str, info));
            }
            else
            {
                str = "-请选择游客人数!"; strid = "0";
                return(UtilsCommons.AjaxReturnJson(strid, str));
            }
        }
Exemple #13
0
        private string UserLogin()
        {
            string un = Utils.GetFormValue(txtUserName.UniqueID);
            string pw = Utils.GetFormValue(txtPassWord.UniqueID);

            if (string.IsNullOrEmpty(un))
            {
                return(UtilsCommons.AjaxReturnJson("0", "请填写用户名!"));
            }
            if (string.IsNullOrEmpty(pw))
            {
                return(UtilsCommons.AjaxReturnJson("0", "请填写密码!"));
            }
            Eyousoft_yhq.BLL.MemberLogin          MLogin = new Eyousoft_yhq.BLL.MemberLogin();
            EyouSoft.Model.SSOStructure.MUserInfo Muser  = MLogin.isLogin(un, pw);

            bool isUserValid = Muser != null ? true : false;

            if (isUserValid)
            {
                return(UtilsCommons.AjaxReturnJson("1", "登陆成功"));
            }
            else
            {
                return(UtilsCommons.AjaxReturnJson("0", "手机号码或者密码错误!"));
            }
        }
Exemple #14
0
        /// <summary>
        /// 保存数据
        /// </summary>
        void BaoCun()
        {
            string msg = string.Empty;
            string Id  = Utils.GetQueryStringValue("id");

            EyouSoft.Model.YlStructure.MShiPinInfo model = new EyouSoft.Model.YlStructure.MShiPinInfo();
            model.CompanyId  = SiteUserInfo.CompanyId;
            model.IssueTime  = DateTime.Now;
            model.OperatorId = SiteUserInfo.UserId;

            model.GongSiId       = Utils.GetFormValue(YLCompanySelect1.CompIDClient); //游轮公司
            model.XiLieId        = Utils.GetFormValue("txtXiLie");                    //系列编号
            model.ChuanZhiId     = Utils.GetFormValue("txtChuanZhi");                 //船只编号
            model.MingCheng      = Utils.GetFormValue(txtSPName.UniqueID);            //视频名称
            model.Filepath       = Utils.GetFormValue(txtURL.UniqueID);               //视频地址
            model.XiangXiJieShao = Utils.GetFormValue(txtMiaoShu.UniqueID);           //视频介绍

            var items  = upload1.Files;
            var items1 = upload1.YuanFiles;

            if (items != null && items.Count > 0)
            {
                model.ShiPinIMG = items[0].FilePath;
            }
            else if (items1 != null && items1.Count > 0)
            {
                model.ShiPinIMG = items1[0].FilePath;
            }

            Response.Clear();
            if (!string.IsNullOrEmpty(msg))
            {
                Response.Write(UtilsCommons.AjaxReturnJson("0", msg));
                Response.End();
            }
            if (string.IsNullOrEmpty(Id))
            {
                if (new EyouSoft.BLL.YlStructure.BJiChuXinXi().InsertShiPin(model) == 1)
                {
                    Response.Write(UtilsCommons.AjaxReturnJson("1", "添加成功"));
                }
                else
                {
                    Response.Write(UtilsCommons.AjaxReturnJson("0", "添加失败"));
                }
            }
            else
            {
                model.ShiPinId = Id;
                if (new EyouSoft.BLL.YlStructure.BJiChuXinXi().UpdateShiPin(model) == 1)
                {
                    Response.Write(UtilsCommons.AjaxReturnJson("1", "修改成功"));
                }
                else
                {
                    Response.Write(UtilsCommons.AjaxReturnJson("0", "修改失败"));
                }
            }
            Response.End();
        }
Exemple #15
0
        /// <summary>
        /// 设置用户状态
        /// </summary>
        void UpdateUserStatus()
        {
            string[] userids = Utils.GetFormValue("userids").Split(',');
            string   status  = Utils.GetFormValue("status");
            string   crmid   = Utils.GetFormValue("crmid");

            EyouSoft.Model.EnumType.ComStructure.UserStatus?_status = null;

            switch (status)
            {
            case "enable": _status = EyouSoft.Model.EnumType.ComStructure.UserStatus.正常; break;

            case "stop": _status = EyouSoft.Model.EnumType.ComStructure.UserStatus.已停用; break;

            case "block": _status = EyouSoft.Model.EnumType.ComStructure.UserStatus.黑名单; break;

            default: break;
            }

            if (!_status.HasValue)
            {
                AjaxResponse(UtilsCommons.AjaxReturnJson("0", "错误的状态设置"));
            }
            if (userids == null || userids.Length == 0)
            {
                AjaxResponse(UtilsCommons.AjaxReturnJson("0", "请选择已经开启过的账号进行状态设置"));
            }

            foreach (var s in userids)
            {
                new EyouSoft.BLL.CrmStructure.BCrm().SetCrmUserStatus(CurrentUserCompanyID, crmid, s, _status.Value);
            }

            AjaxResponse(UtilsCommons.AjaxReturnJson("1", "状态设置成功"));
        }
        /// <summary>
        /// 全局计调配置
        /// </summary>
        /// <param name="tourID">团号</param>
        /// <param name="tourStatus">团队状态</param>
        /// <returns></returns>
        protected string GlobalOpConfig(string tourID)
        {
            string msg = string.Empty;

            if (!string.IsNullOrEmpty(tourID))
            {
                bool ret = new EyouSoft.BLL.PlanStructure.BPlan().IsExist(tourID);
                if (ret)
                {
                    msg = UtilsCommons.AjaxReturnJson("0", "还有未落实的计调项,请落实!");
                }
                else
                {
                    EyouSoft.Model.TourStructure.MTourStatusChange statusChangeModel = new EyouSoft.Model.TourStructure.MTourStatusChange();
                    statusChangeModel.CompanyId  = this.SiteUserInfo.CompanyId;
                    statusChangeModel.DeptId     = this.SiteUserInfo.DeptId;
                    statusChangeModel.IssueTime  = System.DateTime.Now;
                    statusChangeModel.Operator   = this.SiteUserInfo.Name;
                    statusChangeModel.OperatorId = this.SiteUserInfo.UserId;
                    statusChangeModel.TourId     = tourID;
                    statusChangeModel.TourStatus = EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置完毕;
                    bool result = new EyouSoft.BLL.TourStructure.BTour().UpdateTourStatus(statusChangeModel);
                    if (result)
                    {
                        msg = UtilsCommons.AjaxReturnJson("1", "配置成功!");
                    }
                    else
                    {
                        msg = UtilsCommons.AjaxReturnJson("0", "配置失败!");
                    }
                }
            }
            return(msg);
        }
Exemple #17
0
        protected void Save()
        {
            string msg = string.Empty;

            EyouSoft.Model.ComStructure.MComPayment model = new EyouSoft.Model.ComStructure.MComPayment();
            model.Name       = Utils.GetFormValue(txtPayStyleName.UniqueID);
            model.CompanyId  = SiteUserInfo.CompanyId;
            model.OperatorId = SiteUserInfo.UserId;
            model.ItemType   = (EyouSoft.Model.EnumType.ComStructure.ItemType)Utils.GetInt(Utils.GetFormValue(ddlPayType.UniqueID));
            if (string.IsNullOrEmpty(model.Name))
            {
                msg += "请输入支付方式名称!<br/>";
            }
            if (string.IsNullOrEmpty(Utils.GetFormValue(this.RbtnSourceType.UniqueID)))
            {
                msg += "请选择支付方式!<br/>";
            }
            else
            {
                model.SourceType = (EyouSoft.Model.EnumType.ComStructure.SourceType)Utils.GetInt(Utils.GetFormValue(this.RbtnSourceType.UniqueID));
            }
            if (model.SourceType == EyouSoft.Model.EnumType.ComStructure.SourceType.银行)
            {
                model.AccountId = Utils.GetInt(Utils.GetFormValue(this.ddlBankList.UniqueID));
                if (model.AccountId == 0)
                {
                    msg += "请选择银行!<br/>";
                }
            }
            Response.Clear();
            if (!string.IsNullOrEmpty(msg))
            {
                Response.Write(UtilsCommons.AjaxReturnJson("0", msg));
                Response.End();
            }
            if (Id == 0)
            {
                if (new EyouSoft.BLL.ComStructure.BComPayment().Add(model))
                {
                    Response.Write(UtilsCommons.AjaxReturnJson("1", "添加成功"));
                }
                else
                {
                    Response.Write(UtilsCommons.AjaxReturnJson("0", "添加失败"));
                }
            }
            else
            {
                model.PaymentId = Id;
                if (new EyouSoft.BLL.ComStructure.BComPayment().Update(model))
                {
                    Response.Write(UtilsCommons.AjaxReturnJson("1", "修改成功"));
                }
                else
                {
                    Response.Write(UtilsCommons.AjaxReturnJson("0", "修改失败"));
                }
            }
            Response.End();
        }
Exemple #18
0
        /// <summary>
        /// 删除
        /// </summary>
        void Delete()
        {
            string txtTourId = Utils.GetFormValue("txtTourId");

            if (!this.CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.单项业务_单项业务_删除))
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:没有操作权限。"));
            }

            string txtQuXiaoId = Utils.GetFormValue("txtQuXiaoId");

            int bllRetCode = new EyouSoft.BLL.TourStructure.BSingleService().Delete(CurrentUserCompanyID, txtTourId);

            if (bllRetCode == 1)
            {
                RCWE(UtilsCommons.AjaxReturnJson("1", "操作成功"));
            }
            else if (bllRetCode == -98)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:当前状态不允许删除。"));
            }
            else if (bllRetCode == -97)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:已经存在收款,不允许删除。"));
            }
            else if (bllRetCode == -96)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:已经存在付款,不允许删除。"));
            }
            else
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:异常代码[" + bllRetCode + "]"));
            }
        }
Exemple #19
0
        /// <summary>
        /// 获取系列下拉选项
        /// </summary>
        void getXL()
        {
            int           recordCount = 0;
            string        comPid      = Utils.GetQueryStringValue("gongsi");
            string        selectID    = Utils.GetQueryStringValue("sid");
            StringBuilder xilieStr    = new StringBuilder();

            xilieStr.Append("<option value=\"\">请选择</option>");
            var xilies = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetXiLies(SiteUserInfo.CompanyId, 1000, 1, ref recordCount, new MXiLieChaXunInfo()
            {
                GongSiId = comPid
            });

            if (xilies != null && xilies.Count > 0)
            {
                for (int i = 0; i < xilies.Count; i++)
                {
                    if (xilies[i].XiLieId == selectID)
                    {
                        xilieStr.AppendFormat("<option  value=\"{0}\"  selected=\"selected\">{1}</option> ", xilies[i].XiLieId, xilies[i].MingCheng);
                    }
                    else
                    {
                        xilieStr.AppendFormat("<option  value=\"{0}\" >{1}</option>", xilies[i].XiLieId, xilies[i].MingCheng);
                    }
                }
            }
            Response.Clear();
            Response.Write(UtilsCommons.AjaxReturnJson("1", "", xilieStr.ToString()));
            Response.End();
        }
Exemple #20
0
        /// <summary>
        /// 离职保存
        /// </summary>
        protected void PageSave()
        {
            string msg           = "";
            bool   result        = false;
            string id            = Utils.GetQueryStringValue("id");
            string departuretime = Utils.GetQueryStringValue("time");

            if (string.IsNullOrEmpty(departuretime))
            {
                msg += "-请输入员工离职时间!";
            }
            if (!string.IsNullOrEmpty(msg))
            {
                Response.Clear();
                Response.Write(UtilsCommons.AjaxReturnJson(result ? "1" : "0", msg));
                Response.End();
            }
            BGovFilePersonnel BLL = new BGovFilePersonnel();

            result = BLL.UpdateIsLeft(Utils.GetDateTime(departuretime), id);
            msg    = result ? "保存成功!" : "保存失败!";
            Response.Clear();
            Response.Write(UtilsCommons.AjaxReturnJson(result ? "1" : "0", msg));
            Response.End();
        }
Exemple #21
0
        private void DeleteMemo()
        {
            string result = "";
            string memoid = Utils.GetQueryStringValue("Id");

            if (!string.IsNullOrEmpty(memoid))
            {
                BIndividual bllBIndividual = new BIndividual();
                if (bllBIndividual.DelMemo(Utils.GetInt(memoid), SiteUserInfo.CompanyId))//删除方法
                {
                    result = UtilsCommons.AjaxReturnJson("true", "删除成功");
                }
                else
                {
                    result = UtilsCommons.AjaxReturnJson("false", "删除失败");
                }
            }
            else
            {
                result = UtilsCommons.AjaxReturnJson("false", "缺少参数");
            }
            Response.Clear();
            Response.Write(result);
            Response.End();
        }
        /// <summary>
        /// 退回计调 提交财务
        /// </summary>
        /// <returns></returns>
        void ReturnOperaterCheck(EyouSoft.Model.EnumType.TourStructure.TourStatus status)
        {
            string msg = string.Empty;

            EyouSoft.Model.TourStructure.MTourStatusChange statusChange = new EyouSoft.Model.TourStructure.MTourStatusChange();
            statusChange.CompanyId  = this.SiteUserInfo.CompanyId;
            statusChange.DeptId     = this.SiteUserInfo.DeptId;
            statusChange.IssueTime  = System.DateTime.Now;
            statusChange.Operator   = this.SiteUserInfo.Name;
            statusChange.OperatorId = this.SiteUserInfo.UserId;
            statusChange.TourId     = TourId;
            statusChange.TourStatus = status;
            bool result = new EyouSoft.BLL.TourStructure.BTour().UpdateTourStatus(statusChange);

            if (result)
            {
                msg = UtilsCommons.AjaxReturnJson("1", "提交成功!");
            }
            else
            {
                msg = UtilsCommons.AjaxReturnJson("0", "提交失败!");
            }

            RCWE(msg);
        }
Exemple #23
0
        private void Sava()
        {
            EyouSoft.Model.YlStructure.MWzHuiYiShenQingInfo model = new EyouSoft.Model.YlStructure.MWzHuiYiShenQingInfo();
            model.ChuLiBeiZhu     = "";
            model.ChuLiOperatorId = string.Empty;
            model.ChuLiShiJian    = null;
            model.CompanyId       = YuMingInfo.CompanyId;
            model.GuiMo           = Utils.GetFormValue("huiyi_guimo");
            model.HangYeLxShouJi  = Utils.GetFormValue("hangye_shouji");
            model.HangYeMingCheng = Utils.GetFormValue("hangye_mingcheng");
            model.HangYeLxShouJi  = Utils.GetFormValue("hangye_job");
            model.IssueTime       = DateTime.Now;
            model.LeiXing         = (YouLunLeiXing)int.Parse(Utils.GetFormValue("youlun_leixing"));
            model.LxrChengShiId   = int.Parse(Utils.GetFormValue("sel_city"));
            model.LxrDiZhi        = Utils.GetFormValue("dizhi");
            model.LxrGuoJiaId     = 0;
            model.LxrShengFenId   = int.Parse(Utils.GetFormValue("sel_province"));
            model.LxrShouJi       = Utils.GetFormValue("shouji");
            model.LxrXianQuId     = 0;
            model.LxrXingMing     = Utils.GetFormValue("xingming");
            model.LxrYouXiang     = Utils.GetFormValue("email");
            model.ShenQingId      = "";
            model.YuJiShiJian     = Utils.GetFormValue("huiyi_shijian");

            EyouSoft.BLL.YlStructure.BWz bll = new EyouSoft.BLL.YlStructure.BWz();
            if (bll.InsertHuiYiShenQing(model) == 1)
            {
                RCWE(UtilsCommons.AjaxReturnJson("1", "申请成功!"));
            }
            else
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "申请失败!"));
            }
        }
Exemple #24
0
        /// <summary>
        /// 取消散拼计划
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        private string CanelData(string ids, string canelRemarks)
        {
            string[] id = ids.Split(',');

            if (id == null || id.Length == 0)
            {
                return(UtilsCommons.AjaxReturnJson("0", "操作失败:未选择要取消的计划"));
            }

            if (id.Length > 1)
            {
                return(UtilsCommons.AjaxReturnJson("0", "操作失败:一次只能取消一个计划"));
            }

            BTour bll        = new BTour();
            bool  bllRetCode = bll.CancelTour(id, canelRemarks, SiteUserInfo.CompanyId);

            if (bllRetCode)
            {
                return(UtilsCommons.AjaxReturnJson("1", "操作成功!"));
            }
            else
            {
                return(UtilsCommons.AjaxReturnJson("0", "操作失败!"));
            }
        }
Exemple #25
0
        /// <summary>
        /// more
        /// </summary>
        void More()
        {
            int pageSize    = 9;
            int pageIndex   = UtilsCommons.GetPadingIndex("index");
            int recordCount = 0;

            var chaXun = new EyouSoft.Model.YlStructure.MWzYuanGongFengCaiChaXunInfo();
            var items  = new EyouSoft.BLL.YlStructure.BWz().GetYuanGongFengCais(YuMingInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            int pageCount = (int)Math.Ceiling((double)recordCount / (double)pageSize);

            if (pageIndex > pageCount)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", ""));
            }

            StringBuilder s = new StringBuilder();

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    s.AppendFormat("<li><a href=\"javascript:void(0)\">");
                    s.AppendFormat("<img src=\"{0}\">", ErpFilepath + item.Filepath);
                    s.AppendFormat("<p>{0}</p>", item.MingCheng);
                    s.AppendFormat("</a></li>");
                }
            }

            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "", s.ToString()));
        }
Exemple #26
0
        /// <summary>
        /// 正常操作
        /// </summary>
        /// <param name="id">设置的ID</param>
        /// <returns></returns>
        private string ZhengChangData(string ids)
        {
            string[] id     = ids.Split(',');
            bool     result = false;
            string   msg    = string.Empty;

            if (id.Length > 0)
            {
                BTour bll = new BTour();
                for (int i = 0; i < id.Length; i++)
                {
                    result = bll.SetHandStatus(id[i], EyouSoft.Model.EnumType.TourStructure.TourShouKeStatus.报名中);
                    if (result == false)
                    {
                        msg += (i + 1).ToString() + ",";
                    }
                }
                if (msg.Length > 0)
                {
                    msg.Remove(msg.Length - 1, 1);
                    msg = "部分数据已设置成功,当前选中数据中的第" + msg + "行设置失败!";
                }
                else
                {
                    msg = "设置成功!";
                }
            }
            return(UtilsCommons.AjaxReturnJson("1", msg));
        }
Exemple #27
0
 /// <summary>
 /// init privs
 /// </summary>
 void InitPrivs()
 {
     if (!this.CheckGrant(Privs.游轮管理_会议管理_栏目))
     {
         RCWE(UtilsCommons.AjaxReturnJson("0", "没有权限"));
     }
 }
Exemple #28
0
        /// <summary>
        /// ajax操作
        /// </summary>
        private void AJAX(string doType)
        {
            string msg = string.Empty;

            //对应执行操作
            switch (doType)
            {
            case "del":
                //判断权限
                int[] ids = Utils.GetIntArray(Utils.GetQueryStringValue("Ids"), ",");
                if (new BFinance().DelAsset(CurrentUserCompanyID, ids) > 0)
                {
                    AjaxResponse(UtilsCommons.AjaxReturnJson("1"));
                }
                else
                {
                    AjaxResponse(UtilsCommons.AjaxReturnJson("-1", "删除失败!"));
                }

                break;

            default:
                break;
            }
        }
Exemple #29
0
 /// <summary>
 /// init privs
 /// </summary>
 void InitPrivs()
 {
     if (!this.CheckGrant(EyouSoft.Model.EnumType.PrivsStructure.Privs.游轮管理_广告管理_栏目))
     {
         RCWE(UtilsCommons.AjaxReturnJson("0", "没有权限"));
     }
 }
Exemple #30
0
        /// <summary>
        /// 审批
        /// </summary>
        void ShenPi()
        {
            if (!Privs_DaiShouShenPi)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "你没有操作权限"));
            }

            var info = new EyouSoft.Model.FinStructure.MDaiShouShenPiInfo();

            info.CompanyId  = CurrentUserCompanyID;
            info.DaiShouId  = DaiShouId;
            info.OperatorId = SiteUserInfo.UserId;
            info.Status     = EyouSoft.Model.EnumType.FinStructure.DaiShouStatus.已通过;
            info.Time       = DateTime.Now;

            int bllRetCode = new EyouSoft.BLL.FinStructure.BDaiShou().ShenPi(info);

            if (bllRetCode == 1)
            {
                RCWE(UtilsCommons.AjaxReturnJson("1", "操作成功"));
            }
            else if (bllRetCode == -99)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败:代收信息已经审批或不存在"));
            }
            else
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败"));
            }
        }