Пример #1
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            if (!FrameWorkMenuTree.CheckModuleLastLevel(ModuleID))
            {
                return;
            }
            string PermissionName_Value     = (string)Common.sink(PermissionName.UniqueID, MethodType.Post, 100, 1, DataType.Str);
            sys_ModuleExtPermissionTable st = new sys_ModuleExtPermissionTable();

            st.DB_Option_Action_ = "Insert";
            st.ModuleID          = ModuleID;
            st.PermissionName    = PermissionName_Value;
            st.PermissionValue   = BusinessFacade.sys_ModuleExtPermissionGetLastPermissionValue(ModuleID);
            if (st.PermissionValue == 0)
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("增加自定义权限失败,权限值已经达到最大值,无法再增加!"), Icon_Type.Alert, Common.GetHomeBaseUrl(string.Format("ModuleManager.aspx?cmd=ExtPermission&S_ID={0}&ModuleID={1}", S_ID, ModuleID)));
            }
            int returnint = BusinessFacade.sys_ModuleExtPermissionInsertUpdate(st);

            if (returnint < 0)
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("增加自定义权限失败!"), Icon_Type.Error, Common.GetHomeBaseUrl(string.Format("ModuleManager.aspx?cmd=ExtPermission&S_ID={0}&ModuleID={1}", S_ID, ModuleID)));
            }
            sys_ModuleExtPermission_Cache.ReLoadCache();
            TabOptionWebControls1.SelectIndex = 3;
            BindPermissionList();
        }
Пример #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void OnStart()
        {
            if (CMD == "New")
            {
                HiddenDisp();
            }
            else if (CMD == "Edit")
            {
                HeadMenuButtonItem bi2 = new HeadMenuButtonItem();
                bi2.ButtonPopedom = PopedomType.Delete;
                bi2.ButtonName    = "信息"; //需要改
                bi2.ButtonUrlType = UrlType.JavaScript;
                bi2.ButtonUrl     = string.Format("DelData('?CMD=Delete&InfoID={0}')", InfoID);
                HeadMenuWebControls1.ButtonList.Add(bi2);

                HiddenDisp();
                InputData();
            }
            else if (CMD == "Delete")
            {
                //这是操作数据库的核心代码,工作原理是:首先要明确现在所操作的模块对应着数据库中的哪张表,然后创建这个表所对应的的逻辑处理层(bll)对象,如这里操作的表是supervision_Info,则要新建所对应的Maticsoft.BLL.supervision_Info对象
                Maticsoft.BLL.supervision_Info bll = new Maticsoft.BLL.supervision_Info();
                //这是数据库实体类对象(简单来说就对应着这个表的一条记录),因为这里操作的表是supervision_Info,则对应的model是Maticsoft.Model.supervision_Info,然后通过上一行new的bll对象去执行数据库操作(这里使用的方法是GetModel,当然还有其他的方法,根据需要使用不同的方法),返回对应实体类对象
                Maticsoft.Model.supervision_Info model = bll.GetModel(InfoID);
                //bll执行删除操作,参数是这个实体类的ID值
                bll.Delete(model.InfoID);
                //以下方法的第4、5个参数需要更改
                EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", InfoID, "删除信息"), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
            }
        }
Пример #3
0
        private void DeleteFile()
        {
            string filePath = FileTxtLogs.LogPath + FileLogList.SelectedValue.ToString();

            FileTxtLogs.DeleteFile(filePath);
            EventMessage.MessageBox(1, "删除日志文件", string.Format("删除日志文件({0})成功!", filePath), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
        }
Пример #4
0
        protected void AddUserToRole()
        {
            string userIDs = (string)Common.sink("UserIDs", MethodType.Get, 2000, 1, DataType.Str);
            int    UserID  = 0;

            string[] userIDsArray = userIDs.Split(',');
            foreach (string item in userIDsArray)
            {
                if (!string.IsNullOrEmpty(item))
                {
                    UserID = Convert.ToInt32(item);
                    //判断是否已经增加过当前角色用户
                    if (BusinessFacade.sys_UserRolesDisp(UserID, RoleID).R_RoleID == 0)
                    {
                        sys_UserRolesTable su = new sys_UserRolesTable();
                        su.DB_Option_Action_ = "Insert";
                        su.R_RoleID          = RoleID;
                        su.R_UserID          = UserID;
                        BusinessFacade.sys_UserRolesInsertUpdate(su);
                        UserData.Move_UserPermissionCache(UserID);
                    }
                }
            }

            EventMessage.MessageBox(1, "操作成功", string.Format("从角色ID:{0}中增加用户ID:{1}成功!", RoleID, userIDs), Icon_Type.OK, Common.GetHomeBaseUrl(string.Format("RoleManager.aspx?RoleID={0}&CMD=Look", RoleID)));
        }
Пример #5
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            sys_ApplicationsTable sat = new sys_ApplicationsTable();

            sat.ApplicationID    = S_ID;
            sat.A_AppDescription = (string)Common.sink(A_AppDescription.UniqueID, MethodType.Post, 200, 0, DataType.Str);
            sat.A_AppName        = (string)Common.sink(A_AppName.UniqueID, MethodType.Post, 50, 1, DataType.Str);
            sat.A_AppUrl         = (string)Common.sink(A_AppUrl.UniqueID, MethodType.Post, 50, 0, DataType.Str);

            switch (CMD)
            {
            case "New":
                CMD_Txt               = "增加";
                sat.A_Order           = getAppOrder;
                sat.DB_Option_Action_ = "Insert";
                break;

            case "Edit":
                CMD_Txt = "修改";
                sat.DB_Option_Action_ = "Update";
                break;
            }
            All_Title_Txt = CMD_Txt + App_Txt;
            BusinessFacade.sys_ApplicationsInsertUpdate(sat);
            EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", S_ID, All_Title_Txt), Icon_Type.OK, Common.GetHomeBaseUrl("list.aspx"));
        }
Пример #6
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            int RecordCount = 0;

            FrameWorkPermission.CheckPermissionVoid(PopedomType.New);
            sys_GroupTable gt = BusinessFacade.sys_GroupDisp(GroupID);

            gt.G_CName = (string)Common.sink(G_CName.UniqueID, MethodType.Post, 50, 1, DataType.Str);
            if (gt.GroupID == 0)
            {
                gt.G_Level = 1;
                BusinessFacade.sys_GroupList(new QueryParam(), out RecordCount);
                gt.G_ShowOrder = RecordCount + 1;
            }
            else
            {
                gt.G_Level++;
                gt.G_ShowOrder  = gt.G_ChildCount + 1;
                gt.G_ChildCount = 0;
                gt.G_ParentID   = GroupID;
            }

            gt.DB_Option_Action_ = "Insert";
            BusinessFacade.sys_GroupInsertUpdate(gt);
            //更新子部门数
            BusinessFacade.Update_Table_Fileds("sys_Group", "G_ChildCount=G_ChildCount+1", string.Format("GroupID={0}", GroupID));
            EventMessage.MessageBox(1, "操作成功", string.Format("增加部门({0})成功!", gt.G_CName), Icon_Type.OK, Common.GetHomeBaseUrl(string.Format("GroupList.aspx?GroupID={0}", GroupID)), Common.BuildJs);
        }
Пример #7
0
 /// <summary>
 /// 检测用户是否可以新增/修改/删除用户资料
 /// </summary>
 private void CheckUserNewEditDelete()
 {
     if (!BusinessFacade.sys_UserCheckManagerUser(UserID))
     {
         EventMessage.MessageBox(1, "操作失败", string.Format("你的帐号({0})无权管理当前用户,可能你不是超级用户/管理员或者当前用户没有设置部门.超级用户可以管理所有用户,管理员只能管理本部门的用户资料!", UserData.GetUserDate.U_LoginName), Icon_Type.Alert, Common.GetHomeBaseUrl("default.aspx"));
     }
 }
Пример #8
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            string Checkbox_Value = (string)Common.sink("Checkbox", MethodType.Post, 2000, 1, DataType.Str);

            string[] Checkbox_Value_Array = Checkbox_Value.Split(',');
            Int32    IDX = 0;

            for (int i = 0; i < Checkbox_Value_Array.Length; i++)
            {
                if (Int32.TryParse(Checkbox_Value_Array[i], out IDX))
                {
                    QueryParam qp = new QueryParam();
                    qp.Where = " where 1=1 and U_SGroupID=" + IDX.ToString();
                    int       RecordCount = 0;
                    ArrayList lst         = BusinessFacade.sys_UserList(qp, out RecordCount);
                    if (RecordCount > 0)
                    {
                        Response.Write("<script language='javascript'>alert('删除失败!所选分组下还有客服,请先删除客服后再删除分组!');</script>");
                        break;
                    }
                    else
                    {
                        sys_StatisticalGroupingEntity et = new sys_StatisticalGroupingEntity();
                        et.DataTable_Action_ = DataTable_Action.Delete;
                        et.S_ID = IDX;
                        BusinessFacadeDLT.sys_StatisticalGroupingInsertUpdateDelete(et);
                        EventMessage.MessageBox(1, "批量删除成功", string.Format("批量删除({0})成功!", Checkbox_Value), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
                    }
                }
            }
        }
Пример #9
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            sys_SystemInfoTable st = FrameSystemInfo.GetSystemInfoTable;

            st.DB_Option_Action_ = "Update";

            sys_ConfigDataTable dt = new sys_ConfigDataTable();

            dt.C_RequestLog              = Convert.ToBoolean((string)Common.sink(ddl_C_RequestLog.UniqueID, MethodType.Post, 5, 1, DataType.Str));
            dt.C_UpImgHeight             = (int)Common.sink(tb_C_UpImgHeight.UniqueID, MethodType.Post, 255, 1, DataType.Int);
            dt.C_UpImgWidth              = (int)Common.sink(tb_C_UpImgWidth.UniqueID, MethodType.Post, 255, 1, DataType.Int);
            dt.C_IPLookUrl               = (string)Common.sink(tb_C_IPLookUrl.UniqueID, MethodType.Post, 255, 1, DataType.Str);
            dt.C_UploadFileExt           = (string)Common.sink(tb_C_UploadFileExt.UniqueID, MethodType.Post, 255, 1, DataType.Str);
            dt.C_UploadSizeKb            = (int)Common.sink(tb_C_UploadSizeKb.UniqueID, MethodType.Post, 255, 1, DataType.Int);
            dt.C_LoginErrorDisableMinute = (int)Common.sink(tb_C_LoginErrorDisableMinute.UniqueID, MethodType.Post, 255, 1, DataType.Int);
            dt.C_LoginErrorMaxNum        = (int)Common.sink(tb_C_LoginErrorMaxNum.UniqueID, MethodType.Post, 255, 1, DataType.Int);
            dt.C_HttpGZip    = Convert.ToBoolean((string)Common.sink(ddl_C_HttpGZip.UniqueID, MethodType.Post, 5, 1, DataType.Str));
            dt.C_UploadPath  = (string)Common.sink(tb_C_UploadPath.UniqueID, MethodType.Post, 255, 1, DataType.Str);
            dt.C_CheckUpdate = Convert.ToBoolean((string)Common.sink(ddl_C_CheckUpdate.UniqueID, MethodType.Post, 5, 1, DataType.Str));
            dt.C_DisableIp   = (string)Common.sink(tb_C_DisableIp.UniqueID, MethodType.Post, 2000, 0, DataType.Str);

            dt.C_Enable_Ldap = Convert.ToBoolean((string)Common.sink(ddl_C_Enable_Ldap.UniqueID, MethodType.Post, 5, 1, DataType.Str));
            dt.C_Ldap_Path   = (string)Common.sink(tb_C_Ldap_Path.UniqueID, MethodType.Post, 200, 0, DataType.Str);
            dt.C_Ldap_Domain = (string)Common.sink(tb_C_Ldap_Domain.UniqueID, MethodType.Post, 200, 0, DataType.Str);



            st.S_Name    = (string)Common.sink(tb_S_Name.UniqueID, MethodType.Post, 255, 1, DataType.Str);
            st.S_Version = (string)Common.sink(tb_S_Version.UniqueID, MethodType.Post, 20, 1, DataType.Str);


            st.S_SystemConfigData = dt;
            BusinessFacade.sys_SystemInfoInsertUpdate(st);
            EventMessage.MessageBox(1, "修改环境配置", "修改环境配置成功!", Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
        }
Пример #10
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            string Checkbox_Value = (string)Common.sink("Checkbox", MethodType.Post, 2000, 1, DataType.Str);

            string[] Checkbox_Value_Array = Checkbox_Value.Split(',');
            Int32    IDX = 0;

            for (int i = 0; i < Checkbox_Value_Array.Length; i++)
            {
                if (Int32.TryParse(Checkbox_Value_Array[i], out IDX))
                {
                    tbActivityEntity et = new tbActivityEntity();
                    et.DataTable_Action_ = DataTable_Action.Delete;
                    et.ID = IDX;

                    //先判断订单是否为已发送红包订单
                    tbActivityEntity ut = BusinessFacadeDLT.tbActivityDisp(IDX);
                    if (ut.SendDate.HasValue)
                    {
                        Response.Write("<script language='javascript'>alert('此活动为已完成活动,无法执行删除操作!');</script>");
                        return;
                    }
                    else
                    {
                        BusinessFacadeDLT.tbActivityInsertUpdateDelete(et);

                        //删除属于这个活动的订单

                        BusinessFacadeDLT.DeleteActivityOrder(IDX);
                    }
                }
            }

            EventMessage.MessageBox(1, "批量删除成功", string.Format("批量删除({0})成功!", Checkbox_Value), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
        }
Пример #11
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            sys_RolesTable sat = BusinessFacade.sys_RolesDisp(RoleID);

            sat.R_Description = (string)Common.sink(R_Description.UniqueID, MethodType.Post, 255, 0, DataType.Str);
            sat.R_RoleName    = (string)Common.sink(R_RoleName.UniqueID, MethodType.Post, 50, 1, DataType.Str);

            switch (CMD)
            {
            case "New":
                if (BusinessFacade.sys_Roles_PK(sat.R_RoleName, 0))
                {
                    EventMessage.MessageBox(1, "数据输入出错", string.Format("存在相同的角色名称({0})", sat.R_RoleName)
                                            , Icon_Type.Error, "history.back()", UrlType.JavaScript);
                }
                CMD_Txt               = "增加";
                sat.R_UserID          = UserData.GetUserDate.UserID;
                sat.DB_Option_Action_ = "Insert";
                sat.R_UserID          = Common.Get_UserID;
                break;

            case "Edit":
                if (BusinessFacade.sys_Roles_PK(sat.R_RoleName, sat.RoleID))
                {
                    EventMessage.MessageBox(1, "数据输入出错", string.Format("存在相同的角色名称({0})", sat.R_RoleName)
                                            , Icon_Type.Error, "history.back()", UrlType.JavaScript);
                }
                CMD_Txt = "修改";
                sat.DB_Option_Action_ = "Update";
                break;
            }
            All_Title_Txt = CMD_Txt + App_Txt;
            BusinessFacade.sys_RolesInsertUpdate(sat);
            EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", RoleID, All_Title_Txt), Icon_Type.OK, Common.GetHomeBaseUrl("RoleList.aspx"));
        }
Пример #12
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            FrameWorkPermission.CheckPermissionVoid(PopedomType.Orderby);
            string ItemsList = (string)Common.sink(OrderByListItems.UniqueID, MethodType.Post, 100000, 1, DataType.Str);

            if (ItemsList.Length > 0)
            {
                int        RecordCount = 0;
                ArrayList  lst         = new ArrayList();
                QueryParam qp          = new QueryParam();


                string[] ItemsLists = ItemsList.Split(',');
                for (int i = 0; i < ItemsLists.Length; i++)
                {
                    BusinessFacade.Update_Table_Fileds("sys_Module", string.Format("M_OrderLevel='{0}{1}'", Common.FillZero(i.ToString(), 2), "00"), string.Format("ModuleID={0}", ItemsLists[i]));
                    qp.Orderfld  = "M_OrderLevel ";
                    qp.OrderType = 0;
                    qp.Where     = string.Format("Where M_ParentID={0}", ItemsLists[i]);
                    RecordCount  = 0;
                    lst          = BusinessFacade.sys_ModuleList(qp, out RecordCount);
                    if (lst.Count > 0)
                    {
                        RecordCount = 1;
                        foreach (sys_ModuleTable var in lst)
                        {
                            BusinessFacade.Update_Table_Fileds("sys_Module", string.Format("M_OrderLevel='{0}{1}'", Common.FillZero(i.ToString(), 2), Common.FillZero(RecordCount.ToString(), 2)), string.Format("ModuleID={0}", var.ModuleID));
                            RecordCount++;
                        }
                    }
                }
            }

            EventMessage.MessageBox(1, "操作成功", string.Format("排序{0}模块成功!", AppName), Icon_Type.OK, Common.GetHomeBaseUrl(string.Format("ModuleList.aspx?S_ID={0}&AppName={1}", S_ID, AppName)));
        }
Пример #13
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string         All_Title_Txt = "";
            PopedomType    pt            = PopedomType.New;
            sys_FieldTable Ft            = BusinessFacade.sys_FieldDisp(FieldID);

            string F_CName_Value  = (string)Common.sink(F_CName.UniqueID, MethodType.Post, 50, 1, DataType.Str);
            string F_Remark_Value = (string)Common.sink(F_Remark.UniqueID, MethodType.Post, 200, 0, DataType.Str);

            Ft.F_CName  = F_CName_Value;
            Ft.F_Remark = F_Remark_Value;
            if (CMD == "New")
            {
                string F_Key_Value = (string)Common.sink(F_Key.UniqueID, MethodType.Post, 50, 1, DataType.CharAndNum);
                Ft.F_Key             = F_Key_Value;
                All_Title_Txt        = "增加";
                Ft.DB_Option_Action_ = "Insert";
            }
            else if (CMD == "Edit")
            {
                pt                   = PopedomType.Edit;
                All_Title_Txt        = "修改";
                Ft.DB_Option_Action_ = "Update";
            }
            if (BusinessFacade.sys_FieldCheckPK(Ft, pt))
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("存在相同的值({0})!", Ft.F_Key), Icon_Type.Alert, Common.GetHomeBaseUrl("default.aspx"));
            }
            BusinessFacade.sys_FieldInsertUpdate(Ft);
            EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", FieldID, All_Title_Txt), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
        }
Пример #14
0
        /// <summary>
        /// 点击确定按钮执行的方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            Maticsoft.BLL.supervision_Info   supervision      = new Maticsoft.BLL.supervision_Info();
            Maticsoft.Model.supervision_Info supervision_Info = supervision.GetModel(InfoID);
            if (supervision_Info == null)
            {
                supervision_Info = new Maticsoft.Model.supervision_Info();
            }

            //获取客户端通过Post方式传递过来的值的(需要更改)
            supervision_Info.I_FindDate     = (DateTime)Common.sink(this.I_FindDate.UniqueID, MethodType.Post, 255, 0, DataType.Dat);
            supervision_Info.I_Type         = Convert.ToInt32(this.I_Type.SelectedValue);
            supervision_Info.I_Content      = (string)Common.sink(this.I_Content.UniqueID, MethodType.Post, 0, 0, DataType.Str);
            supervision_Info.I_ReportDate   = (DateTime)Common.sink(this.I_ReportDate.UniqueID, MethodType.Post, 0, 0, DataType.Dat);
            supervision_Info.I_ReportUserID = Convert.ToInt32(this.I_ReportUserID.Value);

            switch (CMD)
            {
            case "New":
                CMD_Txt = "增加";
                //如果是增加操作,就调用Add方法
                supervision.Add(supervision_Info);
                break;

            case "Edit":
                CMD_Txt = "修改";
                //如果是修改操作,就调用Update方法
                supervision.Update(supervision_Info);
                break;
            }
            All_Title_Txt = CMD_Txt + App_Txt;
            //以下方法的第4个参数需要更改
            EventMessage.MessageBox(1, "操作成功", string.Format("{1}ID({0})成功!", InfoID, All_Title_Txt), Icon_Type.OK, Common.GetHomeBaseUrl("default.aspx"));
        }
Пример #15
0
        private void OnStart()
        {
            InputData();
            switch (CMD)
            {
            case "New":
                CMD_Txt = "增加";
                HiddenDisp();
                TopTr.Visible = false;
                break;

            case "Edit":
                CMD_Txt = "修改";
                HiddenDisp();
                HeadMenuButtonItem Bm0 = new HeadMenuButtonItem();
                Bm0.ButtonPopedom = PopedomType.List;
                Bm0.ButtonUrl     = string.Format("?CMD=Look&S_ID={0}", S_ID);
                Bm0.ButtonIcon    = "back.gif";
                Bm0.ButtonName    = "返回";
                HeadMenuWebControls1.ButtonList.Add(Bm0);
                HeadMenuButtonItem Bm1 = new HeadMenuButtonItem();
                Bm1.ButtonPopedom = PopedomType.Delete;
                Bm1.ButtonUrlType = UrlType.JavaScript;
                Bm1.ButtonUrl     = string.Format("DelData('?CMD=Delete&S_ID={0}')", S_ID);
                HeadMenuWebControls1.ButtonList.Add(Bm1);
                break;

            case "Look":
                HiddenInput();
                HeadMenuButtonItem Bm2 = new HeadMenuButtonItem();
                Bm2.ButtonPopedom = PopedomType.Edit;
                Bm2.ButtonUrl     = string.Format("?CMD=Edit&S_ID={0}", S_ID);
                HeadMenuWebControls1.ButtonList.Add(Bm2);
                break;

            case "Delete":
                CMD_Txt = "删除";
                sys_ApplicationsTable sat = new sys_ApplicationsTable();
                sat.ApplicationID     = S_ID;
                sat.DB_Option_Action_ = CMD;
                if (sat.ApplicationID != 1)
                {
                    //删除应用表
                    BusinessFacade.sys_ApplicationsInsertUpdate(sat);
                    //删除模块表
                    BusinessFacade.sys_Module_DeleteFormAppID(S_ID);
                    //删除角色应用权限表
                    BusinessFacade.sys_RolePermission_DeleteFromAppid(S_ID);
                    //删除角色应用表
                    BusinessFacade.sys_RoleApplication_DeleteFormAppid(S_ID);
                }
                EventMessage.MessageBox(1, "操作成功", "删除记录ID:(" + S_ID + ")成功!", Icon_Type.OK, Common.GetHomeBaseUrl("list.aspx"));
                break;
            }
            All_Title_Txt = CMD_Txt + App_Txt;
            HeadMenuWebControls1.HeadOPTxt = TabOptionItem1.Tab_Name = All_Title_Txt;
            //Button1.Attributes.Add("Onclick", "javascript:return checkForm(aspnetForm);");
        }
Пример #16
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            string tbLevelOrderMessage_ODSerialNo_Value = (string)Common.sink(tbLevelOrderMessage_ODSerialNo_Input.UniqueID, MethodType.Post, 20, 0, DataType.Str);
            int    tbLevelOrderMessage_UserID_Value     = (int)Common.sink(tbLevelOrderMessage_UserID_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);

            Int16 tbLevelOrderMessage_MsgType_Value = Convert.ToInt16(Common.sink(tbLevelOrderMessage_MsgType_Input.UniqueID, MethodType.Post, 1, 1, DataType.Int));

            string   tbLevelOrderMessage_Msg_Value        = (string)Common.sink(tbLevelOrderMessage_Msg_Input.UniqueID, MethodType.Post, 1024, 1, DataType.Str);
            DateTime tbLevelOrderMessage_CreateDate_Value = (DateTime)Common.sink(tbLevelOrderMessage_CreateDate_Input.UniqueID, MethodType.Post, 20, 1, DataType.Dat);

            bool tbLevelOrderMessage_IsRead_Value = Convert.ToBoolean(Common.sink(tbLevelOrderMessage_IsRead_Input.UniqueID, MethodType.Post, 1, 0, DataType.Int));


            bool tbLevelOrderMessage_IsRead2_Value = Convert.ToBoolean(Common.sink(tbLevelOrderMessage_IsRead2_Input.UniqueID, MethodType.Post, 1, 0, DataType.Int));


            tbLevelOrderMessageEntity ut = BusinessFacadeDLT.tbLevelOrderMessageDisp(IDX);

            ut.ODSerialNo = tbLevelOrderMessage_ODSerialNo_Value;
            ut.UserID     = tbLevelOrderMessage_UserID_Value;
            ut.MsgType    = tbLevelOrderMessage_MsgType_Value;
            ut.Msg        = tbLevelOrderMessage_Msg_Value;
            ut.CreateDate = tbLevelOrderMessage_CreateDate_Value;
            ut.IsRead     = tbLevelOrderMessage_IsRead_Value;
            ut.IsRead2    = tbLevelOrderMessage_IsRead2_Value;

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tbLevelOrderMessageInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加订单交互留言成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改订单交互留言成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #17
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            string   tbLevelOrderCancel_ODSerialNo_Value   = (string)Common.sink(tbLevelOrderCancel_ODSerialNo_Input.UniqueID, MethodType.Post, 20, 0, DataType.Str);
            int      tbLevelOrderCancel_UserID_Value       = (int)Common.sink(tbLevelOrderCancel_UserID_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            DateTime tbLevelOrderCancel_CreateDate_Value   = (DateTime)Common.sink(tbLevelOrderCancel_CreateDate_Input.UniqueID, MethodType.Post, 20, 1, DataType.Dat);
            double   tbLevelOrderCancel_PayLevelBal_Value  = (double)Common.sink(tbLevelOrderCancel_PayLevelBal_Input.UniqueID, MethodType.Post, 19, 1, DataType.Double);
            double   tbLevelOrderCancel_RepEnsureBal_Value = (double)Common.sink(tbLevelOrderCancel_RepEnsureBal_Input.UniqueID, MethodType.Post, 19, 1, DataType.Double);

            Int16 tbLevelOrderCancel_Status_Value = Convert.ToInt16(Common.sink(tbLevelOrderCancel_Status_Input.UniqueID, MethodType.Post, 1, 1, DataType.Int));

            string tbLevelOrderCancel_Comment_Value      = (string)Common.sink(tbLevelOrderCancel_Comment_Input.UniqueID, MethodType.Post, 1024, 0, DataType.Str);
            int    tbLevelOrderCancel_AcceptCount_Value  = (int)Common.sink(tbLevelOrderCancel_AcceptCount_Input.UniqueID, MethodType.Post, 10, 1, DataType.Int);
            int    tbLevelOrderCancel_PublishCount_Value = (int)Common.sink(tbLevelOrderCancel_PublishCount_Input.UniqueID, MethodType.Post, 10, 1, DataType.Int);
            tbLevelOrderCancelEntity ut = BusinessFacadeDLT.tbLevelOrderCancelDisp(IDX);

            ut.ODSerialNo   = tbLevelOrderCancel_ODSerialNo_Value;
            ut.UserID       = tbLevelOrderCancel_UserID_Value;
            ut.CreateDate   = tbLevelOrderCancel_CreateDate_Value;
            ut.PayLevelBal  = tbLevelOrderCancel_PayLevelBal_Value;
            ut.RepEnsureBal = tbLevelOrderCancel_RepEnsureBal_Value;
            ut.Status       = tbLevelOrderCancel_Status_Value;
            ut.Comment      = tbLevelOrderCancel_Comment_Value;
            ut.AcceptCount  = tbLevelOrderCancel_AcceptCount_Value;
            ut.PublishCount = tbLevelOrderCancel_PublishCount_Value;

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tbLevelOrderCancelInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加代练撤销成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改代练撤销成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #18
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            string   tsNotice_Title_Value   = (string)Common.sink(tsNotice_Title_Input.UniqueID, MethodType.Post, 50, 1, DataType.Str);
            string   tsNotice_Body_Value    = (string)Common.sink(tsNotice_Body_Input.UniqueID, MethodType.Post, 4000, 1, DataType.Str);
            string   tsNotice_Url_Value     = (string)Common.sink(tsNotice_Url_Input.UniqueID, MethodType.Post, 100, 0, DataType.Str);
            DateTime tsNotice_PubDate_Value = (DateTime)Common.sink(tsNotice_PubDate_Input.UniqueID, MethodType.Post, 20, 1, DataType.Dat);

            DateTime?tsNotice_StartDate_Value = (DateTime?)Common.sink(tsNotice_StartDate_Input.UniqueID, MethodType.Post, 50, 0, DataType.Dat);


            DateTime?tsNotice_EndDate_Value = (DateTime?)Common.sink(tsNotice_EndDate_Input.UniqueID, MethodType.Post, 50, 0, DataType.Dat);


            bool tsNotice_Enable_Value = Convert.ToBoolean(Common.sink(tsNotice_Enable_Input.UniqueID, MethodType.Post, 1, 0, DataType.Int));

            tsNoticeEntity ut = BusinessFacadeDLT.tsNoticeDisp(IDX);

            ut.Title     = tsNotice_Title_Value;
            ut.Body      = tsNotice_Body_Value;
            ut.Url       = tsNotice_Url_Value;
            ut.PubDate   = tsNotice_PubDate_Value;
            ut.StartDate = tsNotice_StartDate_Value;
            ut.EndDate   = tsNotice_EndDate_Value;
            ut.Enable    = tsNotice_Enable_Value;

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tsNoticeInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加系统公告成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改系统公告成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #19
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            int result = BusinessFacadeDLT.SetUserSubAccount(subUserID.Text, int.Parse(ddlSubAccount.SelectedValue));

            if (result == 1)
            {
                EventMessage.MessageBox(1, "设置子帐号成功", "设置子帐号成功", Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #20
0
 protected void LinkButton1_Click(object sender, EventArgs e)
 {
     FrameWorkPermission.CheckPermissionVoid(PopedomType.Delete);
     FrameSystemInfo.GetSystemInfoTable.S_Licensed        = "";
     FrameSystemInfo.GetSystemInfoTable.DB_Option_Action_ = "Update";
     BusinessFacade.sys_SystemInfoInsertUpdate(FrameSystemInfo.GetSystemInfoTable);
     CheckUpdate.CheckLicensed = true;
     EventMessage.MessageBox(1, "系统注册!", "移除输入序列号成功!", Icon_Type.OK, Common.GetScriptUrl);
 }
Пример #21
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            string tsSMSPlat_PlatName_Value   = (string)Common.sink(tsSMSPlat_PlatName_Input.UniqueID, MethodType.Post, 50, 1, DataType.Str);
            string tsSMSPlat_PostUrl_Value    = (string)Common.sink(tsSMSPlat_PostUrl_Input.UniqueID, MethodType.Post, 250, 1, DataType.Str);
            string tsSMSPlat_UserName_Value   = (string)Common.sink(tsSMSPlat_UserName_Input.UniqueID, MethodType.Post, 50, 0, DataType.Str);
            string tsSMSPlat_Password_Value   = (string)Common.sink(tsSMSPlat_Password_Input.UniqueID, MethodType.Post, 150, 0, DataType.Str);
            string tsSMSPlat_AppID_Value      = (string)Common.sink(tsSMSPlat_AppID_Input.UniqueID, MethodType.Post, 150, 0, DataType.Str);
            string tsSMSPlat_SuccessKey_Value = (string)Common.sink(tsSMSPlat_SuccessKey_Input.UniqueID, MethodType.Post, 50, 1, DataType.Str);

            Int16 tsSMSPlat_SmsStyle_Value = Convert.ToInt16(Common.sink(ddlSendType.UniqueID, MethodType.Post, 1, 1, DataType.Int));


            bool tsSMSPlat_IsEnable_Value = Convert.ToBoolean(Common.sink(tsSMSPlat_IsEnable_Input.UniqueID, MethodType.Post, 1, 1, DataType.Int));

            tsSMSPlatEntity ut = BusinessFacadeDLT.tsSMSPlatDisp(IDX);

            ut.PlatName   = tsSMSPlat_PlatName_Value;
            ut.PostUrl    = tsSMSPlat_PostUrl_Value;
            ut.UserName   = tsSMSPlat_UserName_Value;
            ut.Password   = tsSMSPlat_Password_Value;
            ut.AppID      = tsSMSPlat_AppID_Value;
            ut.SuccessKey = tsSMSPlat_SuccessKey_Value;
            ut.SmsStyle   = tsSMSPlat_SmsStyle_Value;
            ut.IsEnable   = tsSMSPlat_IsEnable_Value;

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tsSMSPlatInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加短信平台成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改短信平台成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #22
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            int      tbChatMessage_UserID_Value     = (int)Common.sink(tbChatMessage_UserID_Input.UniqueID, MethodType.Post, 10, 1, DataType.Int);
            string   tbChatMessage_UID_Value        = (string)Common.sink(tbChatMessage_UID_Input.UniqueID, MethodType.Post, 50, 0, DataType.Str);
            string   tbChatMessage_NickName_Value   = (string)Common.sink(tbChatMessage_NickName_Input.UniqueID, MethodType.Post, 50, 0, DataType.Str);
            int      tbChatMessage_IconIndex_Value  = (int)Common.sink(tbChatMessage_IconIndex_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            int      tbChatMessage_ChatType_Value   = (int)Common.sink(tbChatMessage_ChatType_Input.UniqueID, MethodType.Post, 10, 1, DataType.Int);
            string   tbChatMessage_TargetID_Value   = (string)Common.sink(tbChatMessage_TargetID_Input.UniqueID, MethodType.Post, 10, 1, DataType.Str);
            string   tbChatMessage_Comment_Value    = (string)Common.sink(tbChatMessage_Comment_Input.UniqueID, MethodType.Post, 256, 1, DataType.Str);
            DateTime tbChatMessage_CreateDate_Value = (DateTime)Common.sink(tbChatMessage_CreateDate_Input.UniqueID, MethodType.Post, 20, 1, DataType.Dat);

            DateTime?tbChatMessage_BeginTime_Value = (DateTime?)Common.sink(tbChatMessage_BeginTime_Input.UniqueID, MethodType.Post, 50, 0, DataType.Dat);

            tbChatMessageEntity ut = BusinessFacadeDLT.tbChatMessageDisp(IDX);

            ut.UserID     = tbChatMessage_UserID_Value;
            ut.UID        = tbChatMessage_UID_Value;
            ut.NickName   = tbChatMessage_NickName_Value;
            ut.IconIndex  = tbChatMessage_IconIndex_Value;
            ut.ChatType   = tbChatMessage_ChatType_Value;
            ut.TargetID   = tbChatMessage_TargetID_Value;
            ut.Comment    = tbChatMessage_Comment_Value;
            ut.CreateDate = tbChatMessage_CreateDate_Value;
            ut.BeginTime  = tbChatMessage_BeginTime_Value;

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tbChatMessageInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加tbChatMessage成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改tbChatMessage成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #23
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            string tbPostReport_SerialNo_Value         = (string)Common.sink(tbPostReport_SerialNo_Input.UniqueID, MethodType.Post, 20, 1, DataType.Str);
            int    tbPostReport_UserID_Value           = (int)Common.sink(tbPostReport_UserID_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            int    tbPostReport_ReportCustomerID_Value = (int)Common.sink(tbPostReport_ReportCustomerID_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);

            DateTime?tbPostReport_CreateDate_Value = (DateTime?)Common.sink(tbPostReport_CreateDate_Input.UniqueID, MethodType.Post, 50, 0, DataType.Dat);

            int tbPostReport_DealCustomerID_Value = (int)Common.sink(tbPostReport_DealCustomerID_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);

            DateTime?tbPostReport_DealDate_Value = (DateTime?)Common.sink(tbPostReport_DealDate_Input.UniqueID, MethodType.Post, 50, 0, DataType.Dat);

            int                tbPostReport_Status_Value = (int)Common.sink(tbPostReport_Status_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            string             tbPostReport_Remark_Value = (string)Common.sink(tbPostReport_Remark_Input.UniqueID, MethodType.Post, 512, 0, DataType.Str);
            tbPostReportEntity ut = BusinessFacadeDLT.tbPostReportDisp(IDX);

            ut.SerialNo         = tbPostReport_SerialNo_Value;
            ut.UserID           = tbPostReport_UserID_Value;
            ut.ReportCustomerID = tbPostReport_ReportCustomerID_Value;
            ut.CreateDate       = tbPostReport_CreateDate_Value;
            ut.DealCustomerID   = tbPostReport_DealCustomerID_Value;
            ut.DealDate         = tbPostReport_DealDate_Value;
            ut.Status           = tbPostReport_Status_Value;
            ut.Remark           = tbPostReport_Remark_Value;

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tbPostReportInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加tbPostReport成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改tbPostReport成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #24
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            FrameWorkPermission.CheckPermissionVoid(PopedomType.Edit);
            sys_GroupTable gt = BusinessFacade.sys_GroupDisp(GroupID);

            gt.G_CName           = (string)Common.sink(G_CName.UniqueID, MethodType.Post, 50, 1, DataType.Str);
            gt.DB_Option_Action_ = "Update";
            BusinessFacade.sys_GroupInsertUpdate(gt);
            EventMessage.MessageBox(1, "操作成功", string.Format("修改部门ID({0})成功!", gt.GroupID), Icon_Type.OK, Common.GetHomeBaseUrl(string.Format("GroupList.aspx?GroupID={0}", GroupID)), Common.BuildJs);
        }
Пример #25
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            FrameWorkPermission.CheckPermissionVoid(PopedomType.Edit);
            string Licensed_Value_value = (string)Common.sink(Licensed_Value.UniqueID, MethodType.Post, 29, 29, DataType.Str);

            FrameSystemInfo.GetSystemInfoTable.S_Licensed        = Licensed_Value_value;
            FrameSystemInfo.GetSystemInfoTable.DB_Option_Action_ = "Update";
            BusinessFacade.sys_SystemInfoInsertUpdate(FrameSystemInfo.GetSystemInfoTable);
            EventMessage.MessageBox(1, "系统注册!", "输入序列号成功!", Icon_Type.OK, Common.GetScriptUrl);
        }
Пример #26
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            int tsCreditEval_UserID_Value = (int)Common.sink(tsCreditEval_UserID_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);

            Int16 tsCreditEval_EvalDirect_Value = Convert.ToInt16(Common.sink(tsCreditEval_EvalDirect_Input.UniqueID, MethodType.Post, 1, 1, DataType.Int));

            int   tsCreditEval_Beautifully_Value = (int)Common.sink(tsCreditEval_Beautifully_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            int   tsCreditEval_Good_Value        = (int)Common.sink(tsCreditEval_Good_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            int   tsCreditEval_Normal_Value      = (int)Common.sink(tsCreditEval_Normal_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            int   tsCreditEval_Poor_Value        = (int)Common.sink(tsCreditEval_Poor_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            Int64 tsCreditEval_Score_Value       = (Int64)Common.sink(tsCreditEval_Score_Input.UniqueID, MethodType.Post, 19, 0, DataType.Long);
            int   tsCreditEval_Level_Value       = (int)Common.sink(tsCreditEval_Level_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            tsCreditEvalEntity ut = BusinessFacadeDLT.tsCreditEvalDisp(IDX);

            ut.UserID      = tsCreditEval_UserID_Value;
            ut.EvalDirect  = tsCreditEval_EvalDirect_Value;
            ut.Beautifully = tsCreditEval_Beautifully_Value;
            ut.Good        = tsCreditEval_Good_Value;
            ut.Normal      = tsCreditEval_Normal_Value;
            ut.Poor        = tsCreditEval_Poor_Value;
            ut.Score       = tsCreditEval_Score_Value;
            ut.Level       = tsCreditEval_Level_Value;

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tsCreditEvalInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加信用评价成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改信用评价成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #27
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            int      tsSubUser_UserID_Value      = (int)Common.sink(tsSubUser_UserID_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);
            string   tsSubUser_LoginID_Value     = (string)Common.sink(tsSubUser_LoginID_Input.UniqueID, MethodType.Post, 256, 1, DataType.Str);
            string   tsSubUser_SubUserName_Value = (string)Common.sink(tsSubUser_SubUserName_Input.UniqueID, MethodType.Post, 256, 0, DataType.Str);
            string   tsSubUser_Pass_Value        = (string)Common.sink(tsSubUser_Pass_Input.UniqueID, MethodType.Post, 256, 1, DataType.Str);
            DateTime tsSubUser_CreateDate_Value  = (DateTime)Common.sink(tsSubUser_CreateDate_Input.UniqueID, MethodType.Post, 20, 1, DataType.Dat);
            string   tsSubUser_Comment_Value     = (string)Common.sink(tsSubUser_Comment_Input.UniqueID, MethodType.Post, 1024, 0, DataType.Str);
            string   tsSubUser_Token_Value       = (string)Common.sink(tsSubUser_Token_Input.UniqueID, MethodType.Post, 64, 0, DataType.Str);

            DateTime?tsSubUser_LiveTime_Value = (DateTime?)Common.sink(tsSubUser_LiveTime_Input.UniqueID, MethodType.Post, 50, 0, DataType.Dat);

            tsSubUserEntity ut = BusinessFacadeDLT.tsSubUserDisp(IDX);

            ut.UserID      = tsSubUser_UserID_Value;
            ut.LoginID     = tsSubUser_LoginID_Value;
            ut.SubUserName = tsSubUser_SubUserName_Value;
            ut.Pass        = tsSubUser_Pass_Value;
            ut.CreateDate  = tsSubUser_CreateDate_Value;
            ut.Comment     = tsSubUser_Comment_Value;
            ut.Token       = tsSubUser_Token_Value;
            ut.LiveTime    = tsSubUser_LiveTime_Value;

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tsSubUserInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加子用户成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改子用户成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #28
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            string Title_Value = (string)Common.sink(txtTitle_Input.UniqueID, MethodType.Post, 100, 0, DataType.Str);
            string a           = (string)Common.sink(txtA_Input.UniqueID, MethodType.Post, 100, 0, DataType.Str);
            string b           = (string)Common.sink(txtB_Input.UniqueID, MethodType.Post, 100, 0, DataType.Str);
            string c           = (string)Common.sink(txtC_Input.UniqueID, MethodType.Post, 100, 0, DataType.Str);
            string d           = (string)Common.sink(txtD_Input.UniqueID, MethodType.Post, 100, 0, DataType.Str);

            string            Difficulty_Value = (string)Common.sink(ddlDifficulty.UniqueID, MethodType.Post, 5, 0, DataType.Str);
            string            Subject_Value    = (string)Common.sink(ddlSubject.UniqueID, MethodType.Post, 5, 0, DataType.Str);
            string            Answer_Value     = (string)Common.sink(ddlAnswer.UniqueID, MethodType.Post, 5, 0, DataType.Str);
            tbQuestionsEntity ut = BusinessFacadeDLT.tbQuestionsDisp(IDX);

            ut.ID          = IDX;
            ut.Title       = Title_Value;
            ut.A           = a;
            ut.B           = b;
            ut.C           = c;
            ut.D           = d;
            ut.Answer      = ddlAnswer.SelectedValue;
            ut.Difficulty  = Convert.ToInt32(ddlDifficulty.SelectedValue);
            ut.SubjectType = Convert.ToInt32(ddlSubject.SelectedValue);

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tbQuestionsInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加题库成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改题库成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #29
0
        /// <summary>
        /// 增加/修改事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button1_Click(object sender, EventArgs e)
        {
            int tsBank_UserID_Value = (int)Common.sink(tsBank_UserID_Input.UniqueID, MethodType.Post, 10, 0, DataType.Int);

            Int16 tsBank_BankID_Value = Convert.ToInt16(Common.sink(tsBank_BankID_Input.UniqueID, MethodType.Post, 1, 1, DataType.Int));

            string tsBank_BankUser_Value = (string)Common.sink(tsBank_BankUser_Input.UniqueID, MethodType.Post, 100, 1, DataType.Str);
            string tsBank_BankAcc_Value  = (string)Common.sink(tsBank_BankAcc_Input.UniqueID, MethodType.Post, 100, 1, DataType.Str);
            string tsBank_BankAddr_Value = (string)Common.sink(tsBank_BankAddr_Input.UniqueID, MethodType.Post, 256, 0, DataType.Str);

            bool tsBank_IsDefault_Value = Convert.ToBoolean(Common.sink(tsBank_IsDefault_Input.UniqueID, MethodType.Post, 1, 1, DataType.Int));

            string       tsBank_Comment_Value = (string)Common.sink(tsBank_Comment_Input.UniqueID, MethodType.Post, 1024, 0, DataType.Str);
            tsBankEntity ut = BusinessFacadeDLT.tsBankDisp(IDX);

            ut.UserID    = tsBank_UserID_Value;
            ut.BankID    = tsBank_BankID_Value;
            ut.BankUser  = tsBank_BankUser_Value;
            ut.BankAcc   = tsBank_BankAcc_Value;
            ut.BankAddr  = tsBank_BankAddr_Value;
            ut.IsDefault = tsBank_IsDefault_Value;
            ut.Comment   = tsBank_Comment_Value;

            if (CMD == "New")
            {
                ut.DataTable_Action_ = DataTable_Action.Insert;
            }
            else if (CMD == "Edit")
            {
                ut.DataTable_Action_ = DataTable_Action.Update;
            }
            else
            {
                EventMessage.MessageBox(2, "不存在操作字符串!", "不存在操作字符串!", Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
            Int32 rInt = BusinessFacadeDLT.tsBankInsertUpdateDelete(ut);

            if (rInt > 0)
            {
                string OpTxt = string.Format("增加银行账户成功!(ID:{0})", rInt);
                if (ut.DataTable_Action_ == DataTable_Action.Update)
                {
                    OpTxt = string.Format("修改银行账户成功!(ID:{0})", IDX);
                }
                EventMessage.MessageBox(1, "操作成功", OpTxt, Icon_Type.OK, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else if (rInt == -2)
            {
                EventMessage.MessageBox(1, "操作失败", "操作失败,存在相同的键值(用户名/数据)!", Icon_Type.Alert, Common.GetHomeBaseUrl("Default.aspx"));
            }
            else
            {
                EventMessage.MessageBox(1, "操作失败", string.Format("操作失败,返回值:{0}!", rInt), Icon_Type.Error, Common.GetHomeBaseUrl("Default.aspx"));
            }
        }
Пример #30
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            FrameWorkPermission.CheckPermissionVoid(PopedomType.New);
            sys_RoleApplicationTable rt = new sys_RoleApplicationTable();

            rt.DB_Option_Action_ = "Insert";
            rt.A_ApplicationID   = (int)Common.sink(NewAppID.UniqueID, MethodType.Post, 255, 1, DataType.Int);
            rt.A_RoleID          = RoleID;
            BusinessFacade.sys_RoleApplicationInsertUpdate(rt);
            EventMessage.MessageBox(1, "操作成功", string.Format("增加角色应用ID({0})成功!", rt.A_ApplicationID), Icon_Type.OK, Common.GetHomeBaseUrl(string.Format("RoleManager.aspx?RoleID={0}&CMD=Look", RoleID)));
        }