Beispiel #1
0
        /// <summary>
        /// init juese
        /// </summary>
        void InitJueSe()
        {
            if (T != YongHuLeiXing.平台 && string.IsNullOrEmpty(GongSiId))
            {
                return;
            }

            if (T == YongHuLeiXing.平台)
            {
                GongSiId = YongHuInfo.GongSiId;
            }

            var chaXun = new EyouSoft.Model.MYongHuJueSeChaXunInfo();

            chaXun.GongSiId = GongSiId;

            if (T == YongHuLeiXing.平台)
            {
                chaXun.GongSiId = YongHuInfo.GongSiId;
            }

            StringBuilder s     = new StringBuilder();
            var           items = new EyouSoft.BLL.BYongHuJueSe().GetJueSes(chaXun);

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

            ltrJueSe.Text = s.ToString();
        }
Beispiel #2
0
        /// <summary>
        /// 删除
        /// </summary>
        void ShanChu()
        {
            string txtJueSeId = Utils.GetFormValue("txtJueSeId");

            int bllRetCode = new EyouSoft.BLL.BYongHuJueSe().JueSe_D(YongHuInfo.GongSiId, txtJueSeId);

            if (bllRetCode == 1)
            {
                Utils.RCWE_AJAX("1", "操作成功");
            }
            else
            {
                Utils.RCWE_AJAX("0", "操作失败");
            }
        }
Beispiel #3
0
        /// <summary>
        /// get gongsi juese
        /// </summary>
        void GetGongSiJueSe()
        {
            var chaXun = new MYongHuJueSeChaXunInfo();

            chaXun.GongSiId = Utils.GetQueryStringValue("txtGongSiId");
            if (string.IsNullOrEmpty(chaXun.GongSiId))
            {
                Utils.RCWE("[]");
            }
            var items = new EyouSoft.BLL.BYongHuJueSe().GetJueSes(chaXun);

            if (items == null || items.Count == 0)
            {
                Utils.RCWE("[]");
            }

            Utils.RCWE(Newtonsoft.Json.JsonConvert.SerializeObject(items));
        }
Beispiel #4
0
        /// <summary>
        /// init juese
        /// </summary>
        void InitJueSe()
        {
            var chaXun = new EyouSoft.Model.MYongHuJueSeChaXunInfo();

            chaXun.GongSiId = YongHuInfo.GongSiId;

            StringBuilder s     = new StringBuilder();
            var           items = new EyouSoft.BLL.BYongHuJueSe().GetJueSes(chaXun);

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

            ltrJueSe.Text = s.ToString();
        }
Beispiel #5
0
        /// <summary>
        /// init repeater
        /// </summary>
        void InitRpt()
        {
            pageIndex = Utils.GetPadingIndex();
            var chaXun = GetChaXunInfo();

            var items = new EyouSoft.BLL.BYongHuJueSe().GetJueSes(pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();

                phEmpty.Visible = false;
            }
            else
            {
                phEmpty.Visible = true;
            }
        }
Beispiel #6
0
        /// <summary>
        /// baocun
        /// </summary>
        void BaoCun()
        {
            var info       = GetFormInfo();
            int bllRetCode = 0;

            if (string.IsNullOrEmpty(info.JueSeId))
            {
                bllRetCode = new EyouSoft.BLL.BYongHuJueSe().JueSe_C(info);
            }
            else
            {
                bllRetCode = new EyouSoft.BLL.BYongHuJueSe().JueSe_U(info);
            }

            if (bllRetCode == 1)
            {
                Utils.RCWE_AJAX("1", "操作成功");
            }
            else
            {
                Utils.RCWE_AJAX("0", "操作失败");
            }
        }
Beispiel #7
0
        /// <summary>
        /// init info
        /// </summary>
        void InitInfo()
        {
            if (string.IsNullOrEmpty(EditId))
            {
                return;
            }

            var info = new EyouSoft.BLL.BYongHuJueSe().GetInfo(EditId);

            if (info == null)
            {
                Utils.RCWE_AJAX("0", "异常请求");
            }

            txtName.Value = info.Name;

            if (info.Privs != null && info.Privs.Count > 0)
            {
                foreach (var item in info.Privs)
                {
                    JueSePrivs += item + ",";
                }
            }
        }