当前位置: 首页>>代码示例>>C#>>正文


C# Epoint.MisBizLogic2.Data.MisGuidRow.Insert方法代码示例

本文整理汇总了C#中Epoint.MisBizLogic2.Data.MisGuidRow.Insert方法的典型用法代码示例。如果您正苦于以下问题:C# Epoint.MisBizLogic2.Data.MisGuidRow.Insert方法的具体用法?C# Epoint.MisBizLogic2.Data.MisGuidRow.Insert怎么用?C# Epoint.MisBizLogic2.Data.MisGuidRow.Insert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Epoint.MisBizLogic2.Data.MisGuidRow的用法示例。


在下文中一共展示了Epoint.MisBizLogic2.Data.MisGuidRow.Insert方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: btnSave_Click

        protected void btnSave_Click(object sender, EventArgs e)
        {
            string str = Convert.ToString(HidUserList.Value);
            string AppGuid = Request.QueryString["AppGuid"];
            DataView dv = Epoint.MisBizLogic2.DB.ExecuteDataView("select AllowGuid from RG_Application_Right where AppGuid='" + AppGuid + "'and AllowType='User'");
            if (str.Length == 0)
            {
                new ComDataSyn().DeleteWithCondition(DataSynTarget.BackEndToFront, "RG_Application_Right", "AppGuid='" + AppGuid + "'and AllowType='User'", "RowGuid");

                Epoint.MisBizLogic2.DB.ExecuteNonQuery("delete from RG_Application_Right where AppGuid='" + AppGuid + "'and AllowType='User'");
            }
            else
            {
                str = str.Substring(0, str.Length - 1);
                string[] strArray = str.Split(';');
                foreach (string s in strArray)
                {
                    if (!string.IsNullOrEmpty(s))
                    {
                        string RowGuid = Guid.NewGuid().ToString();
                        int count = 0;
                        foreach (DataRowView row in dv)
                        {
                            if (Convert.ToString(row[0]) == s)
                            {
                                count++;
                            }
                        }
                        if (count == 0)
                        {
                            Epoint.MisBizLogic2.Data.MisGuidRow orow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_Application_Right", RowGuid);
                            orow["AppGuid"] = AppGuid;
                            orow["AllowGuid"] = s;
                            orow["AllowType"] = "User";
                            orow["AppType"] = Request["AppType"];
                            orow.Insert();
                            new ComDataSyn().InsertWithKeyValue(DataSynTarget.BackEndToFront, "RG_Application_Right", "RowGuid", RowGuid);
                        }
                    }

                }
                foreach (DataRowView row in dv)
                {
                    int count = 0;
                    foreach (string s in strArray)
                    {
                        if (Convert.ToString(row[0]) == s)
                        {
                            count++;
                        }
                    }
                    if (count == 0)
                    {
                        new ComDataSyn().DeleteWithCondition(DataSynTarget.BackEndToFront, "RG_Application_Right", "AllowGuid='" + Convert.ToString(row[0]) + "'and AppGuid='" + AppGuid + "'and AllowType='User'", "RowGuid");
                        Epoint.MisBizLogic2.DB.ExecuteNonQuery("delete from RG_Application_Right where AllowGuid='" + Convert.ToString(row[0]) + "'and AppGuid='" + AppGuid + "'and AllowType='User'");
                    }
                }
            }
            WriteAjaxMessage("window.close();");
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:60,代码来源:RG_Application_UserRight.aspx.cs

示例2: btnSave_Click

        protected void btnSave_Click(object sender, EventArgs e)
        {
            string VUserGuid = Request.QueryString["RowGuid"];
            DataView dv = Epoint.MisBizLogic2.DB.ExecuteDataView("select MapGuid from RG_VUser where VUserGuid='" + VUserGuid + "'and MapType='OU'");
            string str = Convert.ToString(HidOuList.Value);
            if (str.Length == 0)
            {
                new ComDataSyn().DeleteWithCondition(DataSynTarget.BackEndToFront, "RG_VUser", " VUserGuid='" + VUserGuid + "'and MapType='OU'", "RowGuid");

                Epoint.MisBizLogic2.DB.ExecuteNonQuery("delete from RG_VUser where VUserGuid='" + VUserGuid + "'and MapType='OU'");
            }
            else
            {
                str = str.Substring(0, str.Length - 1);
                string[] strArray = str.Split('★');

                foreach (string s in strArray)
                {
                    string RowGuid = Guid.NewGuid().ToString();
                    string MapType = "OU";
                    int count = 0;
                    foreach (DataRowView row in dv)
                    {
                        if (Convert.ToString(row[0]) == s)
                        {
                            count++;
                        }
                    }
                    if (count == 0)
                    {
                        Epoint.MisBizLogic2.Data.MisGuidRow orow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_VUser", RowGuid);
                        orow["VUserGuid"] = VUserGuid;
                        orow["MapType"] = MapType;
                        orow["MapGuid"] = s;
                        orow.Insert();
                        new ComDataSyn().InsertWithKeyValue(DataSynTarget.BackEndToFront, "RG_VUser", "RowGuid", RowGuid);
                    }
                }
                foreach (DataRowView row in dv)
                {
                    int count = 0;
                    foreach (string s in strArray)
                    {

                        if (Convert.ToString(row[0]) == s)
                        {
                            count++;
                        }
                    }
                    if (count == 0)
                    {
                        new ComDataSyn().DeleteWithCondition(DataSynTarget.BackEndToFront, "RG_VUser", "MapGuid='" + Convert.ToString(row[0]) + "'and VUserGuid='" + VUserGuid + "'and MapType='OU'", "RowGuid");

                        Epoint.MisBizLogic2.DB.ExecuteNonQuery("delete from RG_VUser where MapGuid='" + Convert.ToString(row[0]) + "'and VUserGuid='" + VUserGuid + "'and MapType='OU'");
                    }
                }
            }
            WriteAjaxMessage("window.close();");
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:59,代码来源:VUser_Dept_Set.aspx.cs

示例3: btnSave_Click

        protected void btnSave_Click(object sender, EventArgs e)
        {
            string str = Convert.ToString(HidRoleList.Value);
            string MatterGuid = Request.QueryString["MatterGuid"];
            DataView dv = Epoint.MisBizLogic2.DB.ExecuteDataView("select AllowGuid,RowGuid from RG_Matter_Right where MatterGuid='" + MatterGuid + "'and (AllowType='Role' or AllowType='UserType')");
            if (str.Length == 0)
            {
                new ComDataSyn().DeleteWithCondition(DataSynTarget.BackEndToFront, "RG_Matter_Right", "MatterGuid='" + MatterGuid + "'and (AllowType='Role' or AllowType='UserType')", "RowGuid");
                Epoint.MisBizLogic2.DB.ExecuteNonQuery("delete from RG_Matter_Right where MatterGuid='" + MatterGuid + "'and (AllowType='Role' or AllowType='UserType')");
            }
            else
            {
                str = str.Substring(0, str.Length - 1);
                string[] strArray = str.Split(';');
                foreach (string s in strArray)
                {
                    if (!string.IsNullOrEmpty(s))
                    {
                        string RowGuid = Guid.NewGuid().ToString();
                        Boolean needtoAdd = true;
                        foreach (DataRowView row in dv)
                        {
                            if (Convert.ToString(row["AllowGuid"]) == s.Split('@')[0])
                            {
                                needtoAdd = false;
                            }
                        }
                        if (needtoAdd)
                        {
                            Epoint.MisBizLogic2.Data.MisGuidRow orow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_Matter_Right", RowGuid);
                            orow["MatterGuid"] = MatterGuid;
                            orow["AllowGuid"] = s.Split('@')[0];
                            orow["AllowType"] = s.Split('@')[1];
                            orow.Insert();
                            new ComDataSyn().InsertWithKeyValue(DataSynTarget.BackEndToFront, "RG_Matter_Right", "RowGuid", RowGuid);
                        }
                    }

                }
                foreach (DataRowView row in dv)
                {
                    Boolean needtoDel = true;
                    foreach (string s in strArray)
                    {
                        if (Convert.ToString(row["AllowGuid"]) == s.Split('@')[0])
                        {
                            needtoDel = false;
                        }
                    }
                    if (needtoDel)
                    {
                        new ComDataSyn().DeleteWithKeyValue(DataSynTarget.BackEndToFront, "RG_Matter_Right", "RowGuid", row["RowGuid"].ToString());
                        Epoint.MisBizLogic2.DB.ExecuteNonQuery("delete from RG_Matter_Right where RowGuid='" + row["RowGuid"].ToString() + "'");
                    }
                }
            }
            SaveAllowToAll();
            WriteAjaxMessage("window.close();");
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:59,代码来源:RG_Matter_RoleRight.aspx.cs

示例4: SaveRelation

 protected void SaveRelation(string VUserGuid)
 {
     string RowGuid = Guid.NewGuid().ToString();
     Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_VUser");
     oRow["RowGuid"] = RowGuid;
     oRow["VUserGuid"] = VUserGuid;
     oRow["MapGuid"] = Session["UserGuid"];
     oRow["MapType"] = "User";
     oRow.Insert();
     new ComDataSyn().InsertWithKeyValue(DataSynTarget.BackEndToFront, "RG_VUser", "RowGuid", RowGuid);
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:11,代码来源:Record_Add.aspx.cs

示例5: btnQuickNew_Click

 protected void btnQuickNew_Click(object sender, EventArgs e)
 {
     string RowGuid = Guid.NewGuid().ToString();
     Epoint.MisBizLogic2.Data.MisGuidRow orow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_Application", RowGuid);
     orow["AppGuid"] = RowGuid;
     orow["AppName"] = "��ϵͳ����";
     orow["ShortcutText"] = Convert.ToString(orow["AppName"]);
     orow["IsForbid"] = 0;
     orow["OrderNum"] = -1;
     orow["IsBlank"] = 0;
     orow["IsTopMenu"] = 0;
     orow["AuditedOUVisible"] = 0;
     orow["OperateUserName"] = Convert.ToString(Session["DisplayName"]);
     orow["OperateDate"] = System.DateTime.Now.ToString();
     orow.Insert();
     new ComDataSyn().InsertWithKeyValue(DataSynTarget.BackEndToFront, "RG_Application", "AppGuid", RowGuid);
     this.RefreshGrid();
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:18,代码来源:RG_Application_List.aspx.cs

示例6: btnQuickNew_Click

 protected void btnQuickNew_Click(object sender, EventArgs e)
 {
     string RowGuid = Guid.NewGuid().ToString();
     Epoint.MisBizLogic2.Data.MisGuidRow orow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_ShortcutMenu", RowGuid);
     orow["ShortcutText"] = "快捷方式名称";
     orow["ShortcutType"] = 1;
     orow["IsBlank"] = 0;
     orow.Insert();
     new ComDataSyn().InsertWithKeyValue(DataSynTarget.BackEndToFront, "RG_ShortcutMenu", "RowGuid", RowGuid);
     this.RefreshGrid();
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:11,代码来源:ShortcutMenu_List.aspx.cs

示例7: btnQuickNew_Click

 protected void btnQuickNew_Click(object sender, EventArgs e)
 {
     string RowGuid = Guid.NewGuid().ToString();
     Epoint.MisBizLogic2.Data.MisGuidRow orow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_Matters", RowGuid);
     orow["ParentGuid"] = ParentGuid;
     orow["MatterName"] = "��������";
     orow["InstrUrl"] = "";
     orow["IsForbidden"] = 0;
     orow["OrderNum"] = -1;
     orow["IsBlank"] = 0;
     orow["IsHidden"] = 0;
     orow["AppGuid"] = "";
     orow["OperateUserName"] = Session["DisplayName"];
     orow["OperateDate"] = System.DateTime.Now.ToString();
     orow.Insert();
     new ComDataSyn().InsertWithKeyValue(DataSynTarget.BackEndToFront, "RG_Matters", "RowGuid", RowGuid);
     AlertAjaxMessage("�����½��ɹ���");
     this.RefreshGrid();
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:19,代码来源:Matter_List.aspx.cs

示例8: InsertSHOpinion

 /// <summary>
 /// 保存审核意见
 /// </summary>
 /// <param name="FRowGuid"></param>
 /// <param name="UserName"></param>
 /// <param name="SHOpinion"></param>
 /// <param name="OtherGuid"></param>
 public void InsertSHOpinion(object FRowGuid, object UserName, string SHOpinion, object OtherGuid)
 {
     Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("ShenHeInfo");
     oRow["RowGuid"] = Guid.NewGuid().ToString();
     oRow["OperateUserName"] = UserName;
     oRow["OperateDate"] = DateTime.Now.ToString();
     oRow["SHOpinion"] = SHOpinion;
     oRow["FRowGuid"] = FRowGuid;
     oRow["OtherGuid"] = OtherGuid;
     oRow.Insert();
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:18,代码来源:DB_RG_DW.cs

示例9: SaveOuTypeForUser

 /// <summary>
 /// �����Ա�ĵ�λ���
 /// </summary>
 private void SaveOuTypeForUser(string rgUserGuid)
 {
     foreach (ListItem item in cblOUType.Items)
     {
         if (item.Selected)
         {
             Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_OuType_Relate");
             oRow["RelatedGuid"] = rgUserGuid;
             oRow["OuType"] = item.Value;
             oRow["RelatedType"] = "User";
             oRow["RowGuid"] = Guid.NewGuid().ToString();
             oRow.Insert();
             //new ComDataSyn().InsertWithKeyValue(DataSynTarget.BackEndToFront, "RG_OuType_Relate", "RowGuid", oRow["RowGuid"].ToString());
         }
     }
     new ComDataSyn().InsertWithCondition(DataSynTarget.BackEndToFront, "RG_OuType_Relate", "RelatedGuid='" + rgUserGuid + "'", "RowGuid");
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:20,代码来源:Record_Add.aspx.cs

示例10: InsertUser

 protected void InsertUser(string LoginID, string DanWeiGuid,string LXR)
 {
     string strSql = "select ZuZhiJGDM from RG_OUInfo where RowGuid='" + DanWeiGuid + "'";
     //ZuZhiJGDM_2020.Text = Epoint.MisBizLogic2.DB.ExecuteToString(strSql);
     Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_User");
     oRow["OperateDate"] = DateTime.Now.ToString();//System.DateTime
     oRow["RowGuid"] = Guid.NewGuid().ToString();//System.String
     oRow["DispName"] = LXR;//System.String
     oRow["LoginID"] = LoginID;//System.String
     oRow["Password"] = common.authPassword(LoginID);//System.String
     oRow["EnableSMS"] = "0";//System.String
     oRow["IsValid"] = "1";//System.String
     oRow["DanWeiGuid"] = DanWeiGuid;
     oRow["UserStatus"] = "002";//System.Stringg
     oRow["DelFlag"] = "0";//System.Int32
     oRow["ZuZhiJGDM"] = Epoint.MisBizLogic2.DB.ExecuteToString(strSql);
     oRow.Insert();
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:18,代码来源:RG_OU_Add.aspx.cs

示例11: btnQuickNew_Click

 protected void btnQuickNew_Click(object sender, EventArgs e)
 {
     string RowGuid = Guid.NewGuid().ToString();
     Epoint.MisBizLogic2.Data.MisGuidRow orow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_Module", RowGuid);
     orow["ParentGuid"] = Request["ParentGuid"];
     orow["ModuleName"] = "ģ������";
     orow["IsForbid"] = 0;
     orow["OrderNum"] = -1;
     orow["IsBlank"] = 0;
     orow["IsHidden"] = 0;
     orow["IsBelongtoBus"] = 0;
     orow["ModuleAddress"] = "";
     orow["SmallImgAddress"] = "";
     orow["BigImgAddress"] = "";
     orow["OperateUserName"] = Session["DisplayName"];
     orow["OperateDate"] = System.DateTime.Now;
     orow["YearFlag"] = "";
     orow["HidUrl"] = "";
     orow["IsBelongtoApp"] = 0;
     if (Request["ParentGuid"] == "" && rgModule.TopModuleCode("", 4) == "")
         orow["ModuleCode"] = "0001";
     else if (Request["ParentGuid"] == "")
         orow["ModuleCode"] = (Convert.ToInt64(rgModule.TopModuleCode("", 4)) + 1).ToString().PadLeft(4, '0');
     else
     {
         string ParentModuleCode = Epoint.MisBizLogic2.DB.ExecuteToString("select ModuleCode from RG_Module where RowGuid='" + Request["ParentGuid"] + "'");
         int CodeLength = ParentModuleCode.Length + 4;
         string LastModuleCode = rgModule.TopModuleCode(ParentModuleCode, CodeLength);//ȡ����һ��ModuleCode
         if (string.IsNullOrEmpty(LastModuleCode))
             LastModuleCode = ParentModuleCode + "0000";
         orow["ModuleCode"] = (Convert.ToInt64(LastModuleCode) + 1).ToString().PadLeft(CodeLength, '0');
     }
     if (string.IsNullOrEmpty(Request["AppGuid"]))
         orow["AppGuid"] = "";
     else
         orow["AppGuid"] = Request["AppGuid"];
     orow.Insert();
     new ComDataSyn().InsertWithKeyValue(DataSynTarget.BackEndToFront, "RG_Module", "RowGuid", RowGuid);
     this.RefreshGrid();
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:40,代码来源:Record_List.aspx.cs

示例12: LoginSys_Click

        protected void LoginSys_Click(object sender, ImageClickEventArgs e)
        {
            // 判断验证码是否正确

            if (Request.Cookies["checkCode"].Value.ToLower() != userauthcode.Value.Trim().ToLower())
            {
                AlertAjaxMessage("您输入的验证码不正确!!");
                //CreatImg();
                WriteAjaxMessage("window.location=window.location;");
                return;
            }
            //}

            //string Hurl = Request.Url.Host;
            //if(Hurl

            //判断当前用户是否能正常登录
            string RegisterUserRow_ID = "";

            Session["USBKeyLogin"] = "0";
            string strSql = "select * from RG_User where LoginID='" + account.Value + "' and IsValid='0' and DelStatus='1' and DelFlag='1' ";
            //if (ViewState["LoginNeedVlidate"].ToString() == "1")
            //{
            //    strSql += " and VerifyCode is not null";
            //}
            //判断是否是未激活的账号
            DataView dv = Epoint.MisBizLogic2.DB.ExecuteDataView(strSql);
            Boolean needActivate = dv.Count > 0;
            if (needActivate)
            {
                //string url = "RG_UserActivation.aspx?UserGuid=" + dv[0]["RowGuid"].ToString();
                AlertAjaxMessage("本帐号未激活,请联系管理员");
                return;
            }
            //判断有没有加密锁,如果有的话,就提示用加密锁登录
            strSql = "select PINCode from RG_User where LoginID='" + account.Value + "' ";
            string PINCode = Epoint.MisBizLogic2.DB.ExecuteToString(strSql);
            if (PINCode.Length > 0)
            {
                //WriteAjaxMessage("alert('您已经有加密锁,请通过加密锁登录!');");
                //WriteAjaxMessage("window.location='epasslogin.aspx';");
                //return;
            }
            //判断当前用户是否已经配置key,如果已配置,则检查当前系统是否启用了key,如果启用了key,再检查是否配置了不运行普通登录
            RegisterUserRow_ID = rgUser.RegisterUserLogin(account.Value, common.authPassword(password.Value));

            if (RegisterUserRow_ID == "")
            {
                #region      登录失败情况下,给用户的提示
                if (Convert.ToInt32(ViewState["LoginErrorTimes"]) != 0)
                {
                    if (Convert.ToInt32(ViewState["ErrorTimes"]) >= Convert.ToInt32(ViewState["LoginErrorTimes"]))
                    {
                        WriteAjaxMessage("alert('您的密码或者验证码已经输错超过了3次,系统将自动关闭!');window.close();");
                        string RowGuid = Guid.NewGuid().ToString();
                        Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_Login", RowGuid);
                        oRow["RGGuid"] = account.Value;
                        oRow["LoginTime"] = System.DateTime.Now.ToString();
                        oRow["IsLoginSuccess"] = 0;
                        oRow["Message"] = "" + account.Value + "的密码或验证码输错了3次,系统自动关闭!";
                        oRow.Insert();
                        return;
                    }
                    else
                    {
                        AlertAjaxMessage("系统不能完成您的登录请求,请检查您的用户名和密码是否匹配!");
                        WriteAjaxMessage("window.location=window.location;");
                    }

                    ViewState["ErrorTimes"] = Convert.ToInt32(ViewState["ErrorTimes"]) + 1;
                    //if (ViewState["LoginNeedVlidate"].ToString() == "1")
                    //    CreatImg();
                    return;
                }
                else
                {

                    AlertAjaxMessage("系统不能完成您的登录请求,请检查您的用户名和密码是否匹配!");
                    WriteAjaxMessage("window.location=window.location;");
                    //if (ViewState["LoginNeedVlidate"].ToString() == "1")
                    //    CreatImg();
                    return;
                }
                #endregion
            }
            else
            {
                //RG_Login(RegisterUserRow_ID, txtUserName.Value);
                RG_Login(account.Value);
            }
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:91,代码来源:Login.aspx.cs

示例13: LoginRecord

        private void LoginRecord()
        {
            int EnableDays;
            // EnableDays = Convert.ToInt32(Epoint.Frame.Bizlogic.Frame_Config.GetConfigValue("RGLoginEnableTime","180"));
            EnableDays = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["RGLoginEnableTime"]);
            if (EnableDays == 0)
                EnableDays = 180;//默认距当前180天
            Database db = DatabaseFactory.CreateDatabase("EpointMis_ConnectionString");
            DateTime dt = DateTime.Now.AddDays(0 - EnableDays);
            // 清除离现在较久的登陆记录,防止RG_Login表过大
            string strSql = ((db.DbProviderFactory.ToString() != "System.Data.OracleClient.OracleClientFactory") ?
                "DELETE FROM RG_Login WHERE LoginTime<@LoginTime" :
                "DELETE FROM RG_Login WHERE LoginTime<:LoginTime");
            DbCommand cmd = db.GetSqlStringCommand(strSql);
            db.AddInParameter(cmd, "LoginTime", DbType.DateTime, dt);
            db.ExecuteNonQuery(cmd);

            string RowGuid = Guid.NewGuid().ToString();
            Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_Login", RowGuid);
            oRow["RGGuid"] = rgUser.GetCurrentRegisterUser().RegisterUserGuid;
            oRow["LoginTime"] = System.DateTime.Now.ToString();
            oRow["IsLoginSuccess"] = 1;
            oRow["Message"] = "成功登陆";
            oRow.Insert();
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:25,代码来源:Login.aspx.cs

示例14: uploadFiles

        /// <summary>
        /// �����ϴ�
        /// </summary>
        private void uploadFiles(string fileName, string EntityRowGuid)
        {
            Epoint.MisBizLogic2.Web.AddPage oAddPage = new Epoint.MisBizLogic2.Web.AddPage(fileTableID);
            Epoint.MisBizLogic2.Data.MisGuidRow oRow;

            HttpPostedFile upFileName = HttpContext.Current.Request.Files[fileName];
            string strAttachGuid = "";

            if (upFileName != null)
            {
                if (upFileName.ContentLength > 0)
                {
                    string[] filesplit = upFileName.FileName.Split('\\');//�����ļ�����
                    string filename = filesplit[filesplit.Length - 1];
                    byte[] fileContent = new byte[upFileName.ContentLength];
                    upFileName.InputStream.Read(fileContent, 0, upFileName.ContentLength);
                    strAttachGuid = Guid.NewGuid().ToString();

                    //oAddPage.SaveTableValues(strAttachGuid, tdContainer, Request.QueryString["ParentRowGuid"]);

                    //���ر��в��븽����Ϣ
                    #region ���븽����Ϣ
                    oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(Com.GetTableNameByID(fileTableID));
                    oRow["RowGuid"] = strAttachGuid;
                    oRow["pic_FuJian"] = fileContent;
                    oRow["pic_FuJian_ContentType"] = upFileName.ContentType;
                    oRow["pic_FuJian_FileName"] = filename;
                    oRow["d_UploadDate"] = DateTime.Now.AddSeconds(-1);//Ϊ����ϰ汾��ѯ add by xuz
                    oRow["EntityRowGuid"] = EntityRowGuid;
                    oRow["i_delete"] = 0;
                    oRow.Insert();

                    #endregion

                    upFileName.InputStream.Close();
                }
            }
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:41,代码来源:CaiLiao.ascx.cs

示例15: Save

        /// <summary>
        /// �����������
        /// </summary>
        public void Save()
        {
            Epoint.MisBizLogic2.Data.MisGuidRow oRow;

            string RowGuid;
            string[] arrFileIndex = txtFileIndex.Text.Split('|');
            //�ж��Ƿ��ǿ�
            StringBuilder sb = new StringBuilder();
            foreach (string fileIndex in arrFileIndex)
            {
                if (fileIndex != "")
                {
                    //�ϴ�����
                    sb.Append(CheckFilesIsEmpty("attachfile" + fileIndex));
                }
            }
            if (sb.Length > 0)
            {
                //Parent.Page.ClientScript.RegisterStartupScript(this.GetType(), "2", string.Format("<script>alert('{0}');</script>", sb.ToString()));
                Response.Write("<Script   language='javascript'>");

                Response.Write(string.Format("alert('{0}');", sb.ToString()));

                Response.Write("</script>");
                //return;
            }
            if (Convert.ToString(ViewState["IsSaved"]) != "1")
            {
                RowGuid = Guid.NewGuid().ToString();
                //�²��ϵ����
                oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(Com.GetTableNameByID(TableID));
                oRow["RowGuid"] = RowGuid;
                oRow["ConfigRowGuid"] = Convert.ToString(ViewState["ConfigRowGuid"]);
                oRow["MisTableID"] = Convert.ToInt32(ViewState["MisTableID"]);
                oRow["MisRowGuid"] = Convert.ToString(ViewState["MisRowGuid"]);
                oRow["ProjectGuid"] = Convert.ToString(ViewState["ProjectGuid"]);
                oRow["Comment"] = Convert.ToString(ViewState["Comment"]);
                oRow["s_YeWuMC"] = Convert.ToString(ViewState["YeWuMC"]);
                oRow["s_ShiFouTiJiao"] = "1";
                oRow["d_TiJiaoSJ"] = DateTime.Now.AddSeconds(-1).ToString();

                oRow.Insert();
            }
            else
            {
                RowGuid = ViewState["RowGuid"].ToString();
            }

            foreach (string fileIndex in arrFileIndex)
            {
                if (fileIndex != "")
                {
                    //�ϴ�����
                    uploadFiles("attachfile" + fileIndex, RowGuid);
                }
            }
            this.RefreshGrid();
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:61,代码来源:CaiLiao.ascx.cs


注:本文中的Epoint.MisBizLogic2.Data.MisGuidRow.Insert方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。