• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Data.MisGuidRow类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: btnNo_Click

        protected void btnNo_Click(object sender, System.EventArgs e)
        {
            string RowGuid = Request["RowGuid"];
            string DWGuid = Request["DWGuid"];

            //�Ƚ�ԭ��������Ϊ��ʷ��¼
            Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oDetailPage.TableDetail.SQL_TableName, Request["RowGuid"]);
            oRow["Status"] = EpointRegisterUser_Bizlogic.OUStatus.��ͨ��;
            oRow["CheckUserName"] = this.DisplayName;
            oRow["CheckUserGuid"] = this.UserGuid;
            oRow["CheckTime"] = DateTime.Now;
            oRow.Update();

            btnNo.Visible = false;
            btnYes.Visible = false;

            #region ͬ������
            CL.UpdateCaiLiaoProjectGuid(DWGuid, "��ҵ-��̬����", DWGuid);
            CL.UpdateCaiLiaoProjectGuid(DWGuid, "��ҵ-Ӫҵִ��", DWGuid);
            CL.UpdateCaiLiaoProjectGuid(DWGuid, "��ҵ-˰��Ǽ�֤��", DWGuid);
            CL.UpdateCaiLiaoProjectGuid(DWGuid, "��ҵ-��֯��������֤", DWGuid);
            CL.UpdateCaiLiaoProjectGuid(DWGuid, "��ҵ-������׼֤��", DWGuid);
            #endregion

            if (!String.IsNullOrEmpty(Request["MessageItemGuid"]))
            {
                msg.WaitHandle_Delete(Request["MessageItemGuid"]);
            }

            WriteAjaxMessage("refreshParent();alert('��˲�ͨ��');window.close();");
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:31,代码来源:RG_DongTai_DetailForCheck.aspx.cs


示例2: btInsertRY_Click

 protected void btInsertRY_Click(object sender, EventArgs e)
 {
     //��ʼ������Ա����Ϣ��ע�⣬����Ѿ������˾Ͳ��ٽ��д���
     if (hiRYGuids.Text.Trim().ToLower() != "undefined")
     {
         string[] RYGuids = hiRYGuids.Text.Trim().Split(';');
         string RYG = "";
         string NoUsers = "";
         for (int m = 0; m < RYGuids.Length; m++)
         {
             RYG = RYGuids[m];
             if (RYG != "")
             {
                 Epoint.MisBizLogic2.Data.MisGuidRow oRowRY = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_QYUser", RYG);
                 if (!RG_DW.IsExistRYOfXM(RYG, Request["RowGuid"]))
                 {
                     RG_DW.InsertXMRY(ZiZhiDJCode_2021.Text, ZiZhiDJ_2021.Text, hiZYCode.Text, RYG, oRowRY["XM"], Request["RowGuid"], DWGuid_2021.Text, oRowRY["IDNum"], oRowRY["ZhiCheng"],
                         RG_DW.GetZCZ( oRowRY["YinZhangNo"] ,oRowRY["YinZhangNo1"],oRowRY["YinZhangNo2"]), oRowRY["ZhuanYe"], oRowRY["ZhuanYeCS"], oRowRY["ZhuanYeCSCode"], oRowRY["GongLing"], "85", hiZYText.Text);
                 }
                 else
                 {
                     NoUsers += oRowRY["XM"] + ";";
                 }
             }
         }
         if (NoUsers != "")
         {
             WriteAjaxMessage("alert('������Ա�Ѿ������ڱ���Ŀ�У�" + NoUsers + "');");
         }
         BindZhuanYe();
     }
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:32,代码来源:RG_XMBeiAn_Edit.aspx.cs


示例3: Page_Load

        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string DWGuid = Request["DWGuid"];
                ViewState["TableName"] = oDetailPage.TableDetail.TableName;
                Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oDetailPage.TableDetail.SQL_TableName, Request["RowGuid"]);

                if (!oRow.R_HasFilled)
                {
                    //lblMessage.Visible=true;
                    //this.AlertAjaxMessage("û�ж�Ӧ�����ݼ�¼��");
                    //this.WriteAjaxMessage("window.close();");
                    return;
                }
                Epoint.MisBizLogic2.Web.CodeGenerator.InitiateControl_DetailPage(oDetailPage, tdContainer, oRow);

                RefreshGrid();

                #region ����
                CL_CWBB.MisRowGuid = DWGuid;
                CL_CWBB.MisTableID = TableID;
                CL_CWBB.ProjectGuid = "";
                CL_CWBB.Comment = DWGuid;
                CL_CWBB.d_TiJiaoSJ = DateTime.Now.ToString();

                CL_NDSJBG.MisRowGuid = DWGuid;
                CL_NDSJBG.MisTableID = TableID;
                CL_NDSJBG.ProjectGuid = "";
                CL_NDSJBG.Comment = DWGuid;
                CL_NDSJBG.d_TiJiaoSJ = DateTime.Now.ToString();

                #endregion
            }
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:35,代码来源:RG_OtherInfo_Detail.aspx.cs


示例4: btnPass_Click

        protected void btnPass_Click(object sender, System.EventArgs e)
        {
            Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oDetailPage.TableDetail.SQL_TableName, Request["RowGuid"]);
            oRow["Status"] = "90";
            oRow.Update();
            //AlertAjaxMessage("�����ɹ�");
            string Opinion = "���ͨ��";
            if (SHOpinion.Text.Trim() != "")
            {
                Opinion += "����������" + Epoint.MisBizLogic2.DB.SQL_Encode(SHOpinion.Text.Trim());
            }
            RG_DW.InsertSHOpinion(Request["RowGuid"], this.DisplayName, Opinion, "");
            //AlertAjaxMessage("�����ɹ�");
            tabOP.Visible = false;
            //ɾ����������
            new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Delete("�����ҵ����", Request["RowGuid"]);
            AlertAjaxMessage("�����ɹ�");

            //��Ӷ���
            string IsSendSMS = ApplicationOperate.GetConfigValueByName("IsSendOUSMS");
            if (IsSendSMS == "1")
            {
                Detail_RG_User D_R_User = DB_R_User.GetDetail(TJRGuid_2020.Text);
                if (D_R_User.Mobile != "")
                {
                    HTSMS.SendSMS(this.DisplayName, D_R_User.DispName, "���ύ��" + ZiZhiText_2020.Text + "��������Ϣ�����ͨ�����뼰ʱ��ע��лл", D_R_User.Mobile);
                }
            }

            this.WriteAjaxMessage("refreshParent();");
            this.WriteAjaxMessage("window.close();");
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:32,代码来源:RG_QYZiZhi_ADDetail.aspx.cs


示例5: BindOUInfo

 protected void BindOUInfo()
 {
     Epoint.MisBizLogic2.Code.DB_CodeMain codemain = new Epoint.MisBizLogic2.Code.DB_CodeMain();
     Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_User", Request["RowGuid"]);
     Epoint.MisBizLogic2.Data.MisGuidRow arow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_OUInfo", oRow["DanWeiGuid"].ToString());
     EnterpriseName.Text = arow["EnterpriseName"].ToString();
     CodeCertificate.Text = arow["CodeCertificate"].ToString();
     EnterpriseType.Text = arow["EnterpriseType"].ToString();
     LegalPerson.Text = arow["LegalPerson"].ToString();
     RegionCharacter.Text = arow["RegionCharacter"].ToString();
     BusinessLicenseNO.Text = arow["BusinessLicenseNO"].ToString();
     Contacter.Text = arow["Contacter"].ToString();
     Tel.Text = arow["Tel"].ToString();
     ContacterID.Text = arow["ContacterID"].ToString();
     Email.Text = arow["Email"].ToString();
     Address.Text = arow["Address"].ToString();
     RegistAddress.Text = arow["RegistAddress"].ToString();
     BeiZhu.Text = arow["BeiZhu"].ToString();
     DataView dv = Epoint.MisBizLogic2.DB.ExecuteDataView("select * FROM RG_OuType_Relate WHERE RelatedGuid='" + oRow["DanWeiGuid"].ToString() + "'and RelatedType='OU'");
     string Type = "";
     foreach (DataRowView row in dv)
     {
         Type += codemain.GetCodeText_FromHash("RG_��Ա��λ", row["OuType"].ToString()) + ';';
     }
     EnterpriseType.Text = Type;
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:26,代码来源:Record_Detail.aspx.cs


示例6: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            Epoint.MisBizLogic2.Data.MisGuidRow oRowBM = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_QYUser", Request["RowGuid"]);
            if (oRowBM["CardIMG"] != DBNull.Value)
            {
                Response.Buffer = true;
                Response.Clear();
                //Response.BinaryWrite((byte[])(oRowBM["CardIMG"]));
                Response.ContentType = "image/pjpeg";
                string s = HttpUtility.UrlEncode(System.Text.UTF8Encoding.UTF8.GetBytes(oRowBM["XM"].ToString()));

                Response.AddHeader("Content-Disposition", "attachment;filename=" + s + ".jpg");
                object dbValue = oRowBM["CardIMG"];
                byte[] file = (byte[])dbValue;

                Response.BinaryWrite(file);
                Response.Flush();
                //Response.End();

                //Response.ContentType = "";
                //string s = HttpUtility.UrlEncode(System.Text.UTF8Encoding.UTF8.GetBytes("" + dt1.Rows[0]["name"].ToString() + ""));

                //Response.AddHeader("Content-Disposition", "attachment;filename=" + s + "");
                //object dbValue = dt1.Rows[0]["data"];
                //byte[] file = (byte[])dbValue;

                //Response.BinaryWrite(file);
                ////Response.BinaryWrite(file);
                //Response.Flush();
            }
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:31,代码来源:GetUserImageByte.aspx.cs


示例7: btnGenerateSQL_Click

 /// <summary>
 /// 生成模块菜单的脚本
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnGenerateSQL_Click(object sender, EventArgs e)
 {
     CheckBox chkSel;
     txtSQL.Text = "";
     for (int i = 0; i < Datagrid1.Items.Count; i++)
     {
         chkSel = (CheckBox)Datagrid1.Items[i].FindControl("chkAdd");
         if (chkSel.Checked)
         {
             string strSQL;
             Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_ShortcutMenu", Datagrid1.DataKeys[i].ToString());
             strSQL = "if not exists(select 1 from RG_ShortcutMenu where RowGuid = '" + oRow["RowGuid"] + "')\r\n";
             strSQL += " begin \r\n";
             strSQL += " insert into RG_ShortcutMenu(IsBlank, ShortcutType, ShortcutImg, ShortcutUrl, ShortcutText, BelongXiaQuCode, OperateUserName, OperateDate, Row_ID, YearFlag, RowGuid, IsReloadTree)";
             strSQL += " values('" + oRow["IsBlank"] + "',";
             strSQL += "'" + oRow["ShortcutType"] + "',";
             strSQL += "'" + oRow["ShortcutImg"] + "',";
             strSQL += "'" + oRow["ShortcutUrl"] + "',";
             strSQL += "'" + oRow["ShortcutText"] + "',";
             strSQL += "'" + oRow["BelongXiaQuCode"] + "',";
             strSQL += "'" + oRow["OperateUserName"] + "',";
             strSQL += "'" + oRow["OperateDate"] + "',";
             strSQL += "'" + oRow["Row_ID"] + "',";
             strSQL += "'" + oRow["YearFlag"] + "',";
             strSQL += "'" + oRow["RowGuid"] + "',";
             strSQL += "'" + oRow["IsReloadTree"] + "'";
             strSQL += ")\r\n";
             strSQL += " end \r\n";
             txtSQL.Text += strSQL;
         }
     }
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:37,代码来源:ShortcutMenu_List.aspx.cs


示例8: btnDel_Click

 protected void btnDel_Click(object sender, System.EventArgs e)
 {
     CheckBox chk;
     for (int i = 0; i < Datagrid1.Items.Count; i++)
     {
         chk = (CheckBox)Datagrid1.Items[i].FindControl("chkAdd");
         if (chk.Checked)
         {
             //����DZ༭�л��˻صģ���ֱ��ɾ����������Ѿ�ͨ���ģ�ֻ�ı�״̬
             Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oListPage.TableDetail.SQL_TableName, Convert.ToString(Datagrid1.DataKeys[i]));
             if (oRow["Status"].ToString() == "90")//���ͨ��
             {
                 RG_DW.DeleteByStatus(oListPage.TableDetail.SQL_TableName, " RowGuid='" + oListPage.TableDetail.SQL_TableName + "' ");
             }
             else
             {
                 Epoint.MisBizLogic2.Data.CommonDataTable.DeleteRecord_FromSqlTable(
                    oListPage.TableID,
                    oListPage.TableDetail.SQL_TableName,
                    Convert.ToString(Datagrid1.DataKeys[i])
                    );
             }
         }
     }
     this.AlertAjaxMessage("ɾ���ɹ���");
     this.RefreshGrid();
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:27,代码来源:RG_QYZiZhi_List.aspx.cs


示例9: 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


示例10: Page_Load

        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!Page.IsPostBack )
            {

                ViewState ["TableName"]=oDetailPage.TableDetail.TableName;
                Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oDetailPage.TableDetail.SQL_TableName, Request["RowGuid"]);

                if (!oRow.R_HasFilled)
                {
                    //lblMessage.Visible=true;
                    //this.AlertAjaxMessage ("û�ж�Ӧ�����ݼ�¼��");
                    //this.WriteAjaxMessage("window.close();");
                    return;
                }
                Epoint.MisBizLogic2.Web.CodeGenerator.InitiateControl_DetailPage(oDetailPage, tdContainer, oRow);
                CL_DQSX.MisRowGuid = Request["RowGuid"];
                CL_DQSX.MisTableID = TableID;
                CL_DQSX.ProjectGuid = "";
                CL_DQSX.Comment = Request["DWGuid"];
                CL_DQSX.d_TiJiaoSJ = DateTime.Now.ToString();
                if (d_qiJian_2027.Text != "")
                {
                    lblSJ.Text = DateTime.Parse(d_qiJian_2027.Text).ToString("yyyy��MM��");
                }
            }
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:27,代码来源:RG_DingQi_Detail.aspx.cs


示例11: 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


示例12: 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


示例13: btSubmit_Click

        protected void btSubmit_Click(object sender, System.EventArgs e)
        {
            //�Ƚ�ԭ����ɾ������ֹ�ظ�
            new HTProject_Bizlogic.DB_Messages_Center().DeleteWH("�����ҵ", Request["RowGuid"]);
            RegistAddress_2017.Text = RegionTreeView.Text;
            RegistAddressCode_2017.Text = RegionTreeView.Value;
            TJRGuid_2017.Text = this.UserGuid;
            //Status_2017.Text = "70";
            oEditPage.SaveTableValues(Request["RowGuid"], tdContainer);
            Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oEditPage.TableDetail.SQL_TableName, Request["RowGuid"]);
            oRow["Status"] = "70";
            oRow["UpdateUserName"] = this.DisplayName;
            oRow["UpdateUserGuid"] = this.UserGuid;
            oRow["UpdateTime"] = DateTime.Now.ToString();
            oRow.Update();
            //this.WriteAjaxMessage("refreshParent();");
            //this.WriteAjaxMessage("EP_ShowMessageDiv(" + tdContainer.ClientID + ",'���ݱ���ɹ�')");
            //���ʹ�������ˣ����ݽ�ɫ��
            DataView dv = DBF.GetUserByRoleName("��ҵ��Ϣ���");

            for (int m = 0; m < dv.Count; m++)
            {
                string messageGuid = Guid.NewGuid().ToString();
                new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Insert(messageGuid,
                                    EnterpriseName_2017.Text + "��Ϣ���",
                                    "",
                                    dv[m]["UserGuid"].ToString(),
                                    dv[m]["DisplayName"].ToString(),
                                    "",
                                    "",
                                    "",
                                    @"HTProject/Pages/RG_OU/RG_OU_All_Detail.aspx?stype=shenhe&RowGuid=" + Request["RowGuid"],
                                    "",
                                    "",
                                    1,
                                    "",
                                    "",
                                    ""
                             );
                //���±�־λ
                string strSql = "update messages_center set PType='�����ҵ',PGuid='"+ Request["RowGuid"] +"' where MessageItemGuid='" + messageGuid + "'";
                Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql);
                //��Ӷ���
                string IsSendADSMS = ApplicationOperate.GetConfigValueByName("IsSendADSMS");
                if (IsSendADSMS == "1")
                {
                    if (dv[m]["Mobile"].ToString() != "")
                    {
                        HTSMS.SendSMS(this.DisplayName, dv[m]["DisplayName"], EnterpriseName_2017.Text + "�ύ��ҵ��Ϣ���", dv[m]["Mobile"]);
                    }
                }
            }
            AlertAjaxMessage("�ύ�ɹ�");
            this.WriteAjaxMessage("refreshParent();window.close();");
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:55,代码来源:RG_OU_Edit.aspx.cs


示例14: 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


示例15: Page_Load

        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!Page.IsPostBack )
            {
                ViewState["TableName"] = oEditPage.TableDetail.TableName;
                Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oEditPage.TableDetail.SQL_TableName, Request["RowGuid"]);
                if (!oRow.R_HasFilled)
                {
                    btnEdit.Visible = false;
                    this.AlertAjaxMessage ("û�ж�Ӧ�����ݼ�¼��");
                    this.WriteAjaxMessage("window.close();");
                    return;
                }
                Epoint.MisBizLogic2.Web.CodeGenerator.InitiateControl_EditPage(oEditPage, tdContainer, oRow);
                //����ϴ��ļ��Ĵ�С�����ͼ��
                this.Add_FileUploadCheck_Script();

                #region
                if (this.d_qiJian_2027.Text == "")
                {
                    this.d_qiJian_2027.Text = DateTime.Now.ToString();
                }
                int thisYear = DateTime.Parse(this.d_qiJian_2027.Text.ToString()).Year;
                int thisMonth = DateTime.Parse(this.d_qiJian_2027.Text.ToString()).Month;
                for (int i = thisYear - 15; i <= thisYear; i++)
                {
                    jpdYear.Items.Add(new ListItem(i.ToString(), i.ToString()));
                }

                for (int i = 1; i <= 12; i++)
                {
                    jpdMonth.Items.Add(new ListItem(i.ToString(), i.ToString()));
                }

                jpdYear.SelectedValue = thisYear.ToString();
                jpdMonth.SelectedValue = thisMonth.ToString();

                #endregion

                if (s_Status_2027.Text == DQStatus.�����)
                {
                    btnEdit.Visible = false;
                    btnWC.Visible = false;
                    CL_DQSX.ReadOnly = true;
                }

                CL_DQSX.MisRowGuid = Request["RowGuid"];
                CL_DQSX.MisTableID = TableID;
                CL_DQSX.ProjectGuid = "";
                CL_DQSX.Comment = Request["DWGuid"];
                CL_DQSX.d_TiJiaoSJ = DateTime.Now.ToString();
            }
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:53,代码来源:RG_DingQi_Edit.aspx.cs


示例16: getSource

 public string getSource(string MatterGuid)
 {
     if (Epoint.MisBizLogic2.DB.ExecuteToInt("select count(1) from RG_Matters where ParentGuid='" + MatterGuid + "'") > 0)
         return "";
     else
     {
         Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow("RG_Matters",MatterGuid);
         if (string.IsNullOrEmpty(oRow["AppGuid"].ToString()))
             return "ƽ̨�ṩ";
         else return Epoint.MisBizLogic2.DB.ExecuteToString("select AppName from RG_Application where AppGuid='"+oRow["AppGuid"].ToString()+"'");
     }
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:12,代码来源:Matter_List.aspx.cs


示例17: Page_Load

        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!Page.IsPostBack )
            {
                ViewState["TableName"] = oEditPage.TableDetail.TableName;
                Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oEditPage.TableDetail.SQL_TableName, Request["RowGuid"]);
                if (!oRow.R_HasFilled)
                {
                    btnEdit.Visible = false;
                    this.AlertAjaxMessage ("û�ж�Ӧ�����ݼ�¼��");
                    this.WriteAjaxMessage("window.close();");
                    return;
                }

                Epoint.MisBizLogic2.Web.CodeGenerator.InitiateControl_EditPage(oEditPage, tdContainer, oRow);
                //����ϴ��ļ��Ĵ�С�����ͼ��
                this.Add_FileUploadCheck_Script();
                RegionTreeView.Text = ZiZhiText_2020.Text;
                RegionTreeView.Value = ZiZhiTextCode_2020.Text;
                string strSql = "SELECT EnterpriseName FROM RG_OUInfo WHERE RowGuid='" + DWGuid_2020.Text + "'";
                lblDWName.Text = Epoint.MisBizLogic2.DB.ExecuteToString(strSql);

                ZZ_ZS_Z.ClientGuid = Request["RowGuid"] + "ZZ_ZS_Z";
                ZZ_ZS_Z.NodeCode = DWGuid_2020.Text;
                ZZ_ZS_Z.MisRowGuid = Request["RowGuid"];

                ZZ_ZS_F.ClientGuid = Request["RowGuid"] + "ZZ_ZS_F";
                ZZ_ZS_F.NodeCode = DWGuid_2020.Text;
                ZZ_ZS_F.MisRowGuid = Request["RowGuid"];

                if (oRow["Status"].ToString() == "90")//ͨ��
                {
                    //btnEdit.Visible = false;
                }
                else if (oRow["Status"].ToString() == "80")//��ͨ��
                {
                    //btnEdit.Visible = false;
                }
                else if (oRow["Status"].ToString() == "70")//�����
                {
                    //btnEdit.Visible = false;
                    //btnSubmit.Visible = false;
                    //ZZ_ZS_Z.ReadOnly = true;
                    //ZZ_ZS_F.ReadOnly = true;
                }

                lblSHOpinion.Text = RG_DW.GetSHOpinion(Request["RowGuid"], "");

            }
            InitTree();
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:51,代码来源:RG_QYZiZhi_Edit2.aspx.cs


示例18: btnDown_Click

        protected void btnDown_Click(object sender, System.EventArgs e)
        {
            HtmlInputCheckBox chk;
            string tempGuid = this.UserGuid + "-LS";
            string strUrl = HttpContext.Current.Server.MapPath(GetApplicationPath()) + "AttachStorage\\" + tempGuid + "\\";
            DirectoryInfo Dir = new DirectoryInfo(strUrl);

            if (!Directory.Exists(strUrl))
            {
                Directory.CreateDirectory(strUrl);
            }
            foreach (string item in System.IO.Directory.GetFiles(strUrl))
            {
                FileInfo FI = new FileInfo(item);
                File.Delete(item);
            }
            for (int i = 0; i < Datagrid1.Items.Count; i++)
            {
                chk = (HtmlInputCheckBox)Datagrid1.Items[i].FindControl("chkAdd");
                //ѭ�������ļ�
                if (chk.Checked)
                {
                    StringBuilder sb = new StringBuilder();
                    Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oListPage.TableDetail.SQL_TableName, Datagrid1.DataKeys[i].ToString());

                    string strFileName = oRow["pic_FuJian_FileName"].ToString();
                    strFileName = ChangFileName(strUrl, strFileName, 0);//����Ƿ���Ҫ��������
                    string filePath = strUrl + strFileName;

                    FileStream objFileStream;
                    BinaryWriter objBinaryWriter;
                    objFileStream = new FileStream(filePath, FileMode.OpenOrCreate, FileAccess.Write);
                    objBinaryWriter = new BinaryWriter(objFileStream);
                    objBinaryWriter.Write((byte[])oRow["pic_FuJian"]);
                    objBinaryWriter.Close();
                    objFileStream.Close();
                }
            }

            //ѭ�����
            string fileName = DateTime.Now.ToString("yyyyMMddHHmmss");
            zip.Name = fileName ;
            //zip = new ZipFile(strUrl + zip.Name + ".zip");
            foreach (string item in System.IO.Directory.GetFiles(strUrl))
            {
                zip.AddFile(item, "");
            }
            //zip.
            zip.Save(strUrl + zip.Name + ".zip");
            WriteAjaxMessage("OpenWindow('RG_DownZip.aspx?zipname=" + fileName + "'),800,600");
        }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:51,代码来源:RG_FuJian_List.aspx.cs


示例19: btnEdit_Click

 protected void btnEdit_Click(object sender, System.EventArgs e)
 {
     Status_2017.Text = "85";//�����
     RegistAddress_2017.Text = RegionTreeView.Text;
     RegistAddressCode_2017.Text = RegionTreeView.Value;
     oEditPage.SaveTableValues(Request["RowGuid"], tdContainer);
     Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oEditPage.TableDetail.SQL_TableName, Request["RowGuid"]);
     oRow["Status"] = "85";
     oRow.Update();
     if (ApplicationOperate.GetConfigValueByName("IsHoldCurPage", "0") == "1")
         this.WriteAjaxMessage("refreshParentHoldCurPage();");
     else
         this.WriteAjaxMessage("refreshParent();");
     this.WriteAjaxMessage("EP_ShowMessageDiv(" + tdContainer.ClientID + ",'���ݱ���ɹ�')");
 }
开发者ID:kingofhawks,项目名称:kcsj,代码行数:15,代码来源:RG_OU_Edit.aspx.cs


示例20: Page_Load

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Equipment类代码示例发布时间:2022-05-24
下一篇:
C# Epi类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap