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

C# ExceptionLog.ExceptionLog类代码示例

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

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



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

示例1: WriteLog_Time

 public static void WriteLog_Time(string className, string methodName, string strLog, int startTime)
 {
     ExceptionLog log = new ExceptionLog {
         ErrClassName = className
     };
     log.ErrMessage = strLog + "。执行花费时间:" + ((End - startTime)).ToString();
     log.ErrMethod = methodName;
     log.WriteExceptionLog(true);
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:9,代码来源:WriteTimePass.cs


示例2: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons);
     if (!base.IsPostBack)
     {
         if (this.Session["user"] == null)
         {
             Const.GoLoginPath_OpenWindow(this.Page);
         }
         else
         {
             string userName = ((UserModel)this.Session["User"]).UserName;
             string power = ((UserModel)this.Session["User"]).Power;
             ButtonsModel model = new ButtonsModel(userName)
             {
                 IfAdd = false,
                 IfUpdate = false,
                 IfDelete = false,
                 IfLook = false,
                 IfSearch = false,
                 IfRefresh = true,
                 IfHuiZong = false,
                 IfPutOut = false,
                 IfSet = false,
                 IfExit = true
             };
             this.Master.btModel = model;
             if ((base.Request["PK"] != null) && (base.Request["PK"].ToString() != ""))
             {
                 if (PowerClass.IfHasPower(userName, power, PowerNum.BankCardUpdate))
                 {
                     model.IfSave = true;
                     this.Master.LBTitle = "乡镇财政资金监管信息系统 - 修改单位帐户信息";
                     this.Master.TitlePic = "修改单位帐户信息";
                     try
                     {
                         try
                         {
                             this.dbo = new DB_OPT();
                             this.dbo.Open();
                             this.bmd = new BankDal();
                             DataSet list = new DataSet();
                             list = this.bmd.GetList("BankPK='" + base.Request["PK"].ToString() + "'", this.dbo);
                             this.txtCompany.Text = list.Tables[0].Rows[0]["Name"].ToString();
                             this.CompanyPk.Value = list.Tables[0].Rows[0]["pk_corp"].ToString();
                             this.txtBankName.Text = list.Tables[0].Rows[0]["BankName"].ToString();
                             this.txtBankNum.Text = list.Tables[0].Rows[0]["BankNum"].ToString();
                             this.txtDiscription.Text = list.Tables[0].Rows[0]["Discription"].ToString();
                             this.txtBankNumMan.Text = list.Tables[0].Rows[0]["BankNumMan"].ToString();
                         }
                         catch (Exception exception)
                         {
                             this.el = new ExceptionLog.ExceptionLog();
                             this.el.ErrClassName = base.GetType().ToString();
                             this.el.ErrMessage = exception.Message.ToString();
                             this.el.ErrMethod = "Page_Load()";
                             this.el.WriteExceptionLog(true);
                             Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page);
                         }
                         return;
                     }
                     finally
                     {
                         if (this.dbo != null)
                         {
                             this.dbo.Close();
                         }
                     }
                 }
                 Const.SorryForPower(this.Page);
             }
             else if (PowerClass.IfHasPower(userName, power, PowerNum.BankCardAdd))
             {
                 model.IfSave = true;
                 this.Master.LBTitle = "乡镇财政资金监管信息系统 - 新增单位帐户信息";
                 this.Master.TitlePic = "新增单位帐户信息";
             }
             else
             {
                 Const.SorryForPower(this.Page);
             }
         }
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:84,代码来源:newBankInfo.aspx.cs


示例3: DataDelete

 private void DataDelete(string strPK)
 {
     try
     {
         this.mm = new CompanyDal();
         this.dbo = new DB_OPT();
         this.dbo.Open();
         this.mm.pk_corp = strPK.Trim();
         if (this.mm.Delete(this.dbo) > 0)
         {
             if (this.Master.PageIndex > 1)
             {
                 this.pageind = this.Master.PageIndex;
             }
             this.ShowData(this.Master.StrSelect);
         }
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "DataDelete()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("操作失败,请联系系统管理员!", this.Page);
     }
     finally
     {
         if (this.dbo != null)
         {
             this.dbo.Close();
         }
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:34,代码来源:CompanyList.aspx.cs


示例4: ChildDataBind

 public void ChildDataBind(string strPK)
 {
     try
     {
         this.dbo = new DB_OPT();
         this.dbo.Open();
         this.branch = new BranchDal();
         DataSet viewList = this.branch.GetViewList("pk_corp='" + strPK + "'", this.dbo);
         if ((viewList != null) && (viewList.Tables[0].Rows.Count > 0))
         {
             this.gvResult_child_employee.DataSource = viewList;
             this.gvResult_child_employee.DataBind();
         }
         else
         {
             DataTable table = viewList.Tables[0];
             DataRow row = table.NewRow();
             table.Rows.Add(row);
             this.gvResult_child_employee.DataSource = table.DefaultView;
             this.gvResult_child_employee.DataBind();
         }
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "ChildDataBind()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("获取数据失败,请联系系统管理员!", this.Page);
     }
     finally
     {
         if (this.dbo != null)
         {
             this.dbo.Close();
         }
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:39,代码来源:CompanyList.aspx.cs


示例5: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Session["user"] != null)
     {
         if (base.Request["strTitle"] != null)
         {
             this.txttitle.Value = base.Server.UrlDecode(base.Request["strTitle"].ToString().Trim());
         }
         this.Master.strTitle = this.txttitle.Value;
         this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons);
         this.Master.SearchHasGone = new SearchHandler(this.SearchControl);
         this.Master.PageNavigatorChange = new PageNavigatorHandler(this.PageChangControl);
         if (!this.Page.IsPostBack)
         {
             string userName = ((UserModel)this.Session["User"]).UserName;
             string power = ((UserModel)this.Session["User"]).Power;
             string companyPower = ((UserModel)this.Session["User"]).CompanyPower;
             try
             {
                 ButtonsModel model = null;
                 PublicDal.ShowListButton(this.Page, out model, "");
                 model.IbtDoText = "修改";
                 model.IfPrintNote = false;
                 model.IfSave = true;
                 model.IfAdd = true;
                 model.IfDo = true;
                 this.Master.btModel = model;
             }
             catch (Exception exception)
             {
                 this.el = new ExceptionLog.ExceptionLog();
                 this.el.ErrClassName = base.GetType().ToString();
                 this.el.ErrMessage = exception.Message.ToString();
                 this.el.ErrMethod = "bind()";
                 this.el.WriteExceptionLog(true);
                 Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page);
             }
         }
     }
     else
     {
         Const.GoLoginPath_List(this.Page);
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:44,代码来源:JCBWH.aspx.cs


示例6: ShowData

 public void ShowData(string str)
 {
     try
     {
         this.dbo = new DB_OPT();
         this.dbo.Open();
         string companyWhere = PublicDal.GetCompanyWhere();
         if (str != "")
         {
             str = " where " + str + " and  pd_found_xz='01'  and   nvl(pd_project_isbxk,0)=0 " + companyWhere;
         }
         else
         {
             str = "where  pd_found_xz='01'  and   nvl(pd_project_isbxk,0)=0 " + companyWhere;
         }
         DataSet set = this.pagesize.pagesize("*", "VIEW_PD_PROJECT_LIST", str, "pd_project_code", " order by pd_project_code desc ", this.Master.PageIndex, this.Master.PageSize, out this.count);
         this.Master.RecordCount = Convert.ToInt32(this.count);
         if ((set != null) && (set.Tables[0].Rows.Count > 0))
         {
             DataView defaultView = set.Tables[0].DefaultView;
             if ((this.ViewState["SortOrder"] != null) && (this.ViewState["OrderDire"] != null))
             {
                 string str3 = ((string)this.ViewState["SortOrder"]) + " " + ((string)this.ViewState["OrderDire"]);
                 defaultView.Sort = str3;
             }
             this.gvResult.DataSource = defaultView;
             this.gvResult.DataBind();
         }
         else
         {
             DataTable table = new DataTable();
             table = set.Tables[0];
             DataRow row = table.NewRow();
             table.Rows.Add(row);
             this.gvResult.DataSource = table.DefaultView;
             this.gvResult.DataBind();
         }
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "ShowData()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("获取数据失败,请联系系统管理员!", this.Page);
     }
     finally
     {
         if (this.dbo != null)
         {
             this.dbo.Close();
         }
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:55,代码来源:SSList.aspx.cs


示例7: addupdate

 public void addupdate()
 {
     try
     {
         this.dbo = new DB_OPT();
         this.dbo.Open();
         if ((this.txtname.Text.Trim() == "") || (this.txtBH.Text.Trim() == ""))
         {
             Const.ShowMessage("带*的数据必须填写!", this.Page);
         }
         else
         {
             this.ubtm = new UsualBookTableDal();
             this.um = new UsualBookTableModel();
             this.ubtm.FatherPK = this.FatherPk.Value.Trim();
             this.ubtm.TableName = base.Request.QueryString["tn"].ToString().Trim();
             if (this.ubtm.FatherPK != "")
             {
                 this.ubtm.PK = this.ubtm.FatherPK.Trim();
                 this.um = this.ubtm.GetModel(false, this.dbo);
                 if (this.um.IsHasBaby == "0")
                 {
                     this.ubtm.TableName = base.Request.QueryString["tn"].ToString();
                     this.ubtm.UpdateHasBaby(this.dbo);
                 }
                 this.ubtm.PKPath = this.ubtm.PKPath + this.ubtm.PK + "|";
                 this.ubtm.Grade = this.um.Grade;
             }
             this.ubtm.BH = this.txtBH.Text.Trim();
             this.ubtm.TableName = base.Request.QueryString["tn"].ToString().Trim();
             this.ubtm.Name = this.txtname.Text.Trim();
             this.ubtm.Discription = this.txtDiscription.Text.Trim();
             this.ubtm.FatherPK = this.FatherPk.Value.Trim();
             this.ubtm.IsHasBaby = "0";
             this.ubtm.Grade++;
             int count = 0;
             if ((base.Request["PK"] != null) && (base.Request["PK"].ToString() != ""))
             {
                 this.ubtm.PK = base.Request["PK"].ToString().Trim();
                 Const.UpdateSuccess(this.ubtm.Update(this.dbo), this.Page);
             }
             else
             {
                 this.ubtm.BH = this.txtBH.Text.Trim();
                 if (this.ubtm.Exists(this.dbo) > 0)
                 {
                     Const.ShowMessage("该编号已经存在!", this.Page);
                 }
                 else
                 {
                     count = this.ubtm.Add(this.dbo);
                     if (base.Request["reload"] != null)
                     {
                         Const.AddSuccess(count, base.Request["reload"].ToString(), this.Page);
                     }
                     else
                     {
                         Const.AddSuccess(count, "", this.Page);
                     }
                 }
             }
         }
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "addupdate()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("操作失败,请联系管理员!", this.Page);
     }
     finally
     {
         if (this.dbo != null)
         {
             this.dbo.Close();
         }
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:80,代码来源:newDictionary.aspx.cs


示例8: AddKHTypeDetail

 private void AddKHTypeDetail()
 {
     try
     {
         if (this.txtKPContent.Text.Trim() == "")
         {
             Const.ShowMessage("请输入考评内容!", this.Page);
         }
         if (this.txtKP_BiaoZhun.Text.Trim() == "")
         {
             Const.ShowMessage("请输入扣分标准!", this.Page);
         }
         else
         {
             PD_BASE_KAOPINGTYPEDETAIL_Model model = new PD_BASE_KAOPINGTYPEDETAIL_Model();
             PD_BASE_KAOPINGTYPEDETAIL_Bll bll = new PD_BASE_KAOPINGTYPEDETAIL_Bll();
             model.KP_CONTENT = this.txtKPContent.Text;
             model.KP_BIAOZHUN = this.txtKP_BiaoZhun.Text;
             model.KP_YEAR = this.ddlKP_Year.SelectedValue;
             model.KP_TYPEID = new int?(int.Parse(this.txtKHTypeID.Value));
             DataSet set = DbHelperOra.Query("select khtypeper from PD_BASE_KAOPINGTYPE where auto_id=" + model.KP_TYPEID);
             if (set != null)
             {
                 model.KP_BASECODE = new int?(Convert.ToInt32(set.Tables[0].Rows[0][0].ToString()));
             }
             else
             {
                 model.KP_BASECODE = 0;
             }
             model.ISCOMFIRM = this.ddlIsComfirm.SelectedValue.ToString();
             bll.Add(model);
             Const.DoSuccessOpen("", this.Page);
         }
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "AddMenu()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("操作失败,请联系管理员!", this.Page);
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:44,代码来源:KaoPingTypeDetailSetOper.aspx.cs


示例9: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     this.txtMenuPX.Attributes.Add("onkeypress", "javascript:return onlyNum();");
     this.Master.LBTitle = "乡镇财政资金监管信息系统 - 修改菜单";
     this.Master.TitlePic = "~/images/页标题/修改菜单副本.jpg";
     this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons);
     if (!this.Page.IsPostBack && (this.Session["User"] != null))
     {
         if (base.Request.QueryString["PK"] != null)
         {
             try
             {
                 try
                 {
                     string userName = ((UserModel)this.Session["User"]).UserName;
                     string power = ((UserModel)this.Session["User"]).Power;
                     ButtonsModel model = new ButtonsModel(userName);
                     if (PowerClass.IfHasPower(userName, power, PowerNum.MenuUpdate))
                     {
                         model.IfAdd = false;
                         model.IfSave = true;
                         model.IfUpdate = false;
                         model.IfDelete = false;
                         model.IfLook = false;
                         model.IfSearch = false;
                         model.IfRefresh = true;
                         model.IfHuiZong = false;
                         model.IfPutOut = false;
                         model.IfSet = false;
                         model.IfExit = true;
                         this.Master.btModel = model;
                         this.dbo = new DB_OPT();
                         this.dbo.Open();
                         this.mm = new MenuDal();
                         this.mm.MemuPK = base.Request.QueryString["PK"].ToString();
                         this.mm = this.mm.GetModel(false, this.dbo);
                         this.SetValue(this.mm);
                     }
                     else
                     {
                         Const.SorryForPower(this.Page);
                     }
                 }
                 catch (Exception exception)
                 {
                     this.el = new ExceptionLog.ExceptionLog();
                     this.el.ErrClassName = base.GetType().ToString();
                     this.el.ErrMessage = exception.Message.ToString();
                     this.el.ErrMethod = "Page_Load()";
                     this.el.WriteExceptionLog(true);
                     Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page);
                 }
                 goto Label_0237;
             }
             finally
             {
                 if (this.dbo != null)
                 {
                     this.dbo.Close();
                 }
             }
         }
         Const.GoLoginPath_Open(this.Page);
     }
     Label_0237:
     this.fl1.VirtualCatalog = "";
     this.fl1.ImagePath = "System/menu/images";
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:68,代码来源:MenuUpdate.aspx.cs


示例10: DataDelete

 private void DataDelete(string strPK, string bh, string name, string company, string branch)
 {
     try
     {
         if (PublicDal.IsDelete(this.Page, "PD_FOUND_OUT", "AUTO_NO", strPK, "PD_NOW_SERVERPK"))
         {
             new PD_FOUND_OUT_Bll().Delete(Convert.ToInt32(strPK));
             if (this.Master.PageIndex > 1)
             {
                 this.pageind = this.Master.PageIndex;
             }
             this.ShowData(this.Master.StrSelect);
         }
         else
         {
             PageShowText.ShowMessage("单据已进入业务流程,需删除请追回单据后再进行删除。", this.Page);
         }
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "DataDelete()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("操作失败,请联系系统管理员!", this.Page);
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:28,代码来源:ZJBFList.aspx.cs


示例11: ShowData

 public void ShowData(string str)
 {
     try
     {
         this.dbo = new DB_OPT();
         this.dbo.Open();
         string companyWhere = PublicDal.GetCompanyWhere();
         if (str != "")
         {
             str = " where " + str + companyWhere;
         }
         else
         {
             str = " where 1=1" + companyWhere;
         }
         DataSet ds = this.pagesize.pagesize("*", "v_pd_found_out_list", str, "auto_no", "", this.Master.PageIndex, this.Master.PageSize, out this.count);
         this.Master.RecordCount = Convert.ToInt32(this.count);
         if (this.gvResult.Columns.Count == 0)
         {
             PublicDal.setGViewColumns(ds, this.gvResult);
             DataSet dataSetClo = null;
             DataSet dataSetTable = null;
             PublicDal.GetSelectTJ(this.gvResult, ref dataSetClo, ref dataSetTable, null);
             this.Master.DataSetClo = dataSetClo;
             this.Master.DataSetTable = dataSetTable;
         }
         if ((ds != null) && (ds.Tables[0].Rows.Count > 0))
         {
             PublicDal.NewTotalMoneyRow(ds);
             DataView defaultView = ds.Tables[0].DefaultView;
             if ((this.ViewState["SortOrder"] != null) && (this.ViewState["OrderDire"] != null))
             {
                 string str3 = ((string)this.ViewState["SortOrder"]) + " " + ((string)this.ViewState["OrderDire"]);
                 defaultView.Sort = str3;
             }
             this.gvResult.DataSource = defaultView;
             this.gvResult.DataBind();
         }
         else
         {
             DataTable table = new DataTable();
             table = ds.Tables[0];
             DataRow row = table.NewRow();
             table.Rows.Add(row);
             this.gvResult.DataSource = table.DefaultView;
             this.gvResult.DataBind();
         }
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "ShowData()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("获取数据失败,请联系系统管理员!", this.Page);
     }
     finally
     {
         if (this.dbo != null)
         {
             this.dbo.Close();
         }
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:65,代码来源:ZJBFList.aspx.cs


示例12: Page_Load


//.........这里部分代码省略.........
                        table.TableName = "PD_PROJECT_BZFFLIST";
                        table.Columns = "AUTO_NO as PK,PD_BZFFLIST_PEASANT_NAME||PD_BZFFLIST_IDNO as 项目名称,0,'',0,''";
                        goto Label_30B8;

                    case "mssql_kjkm":
                        table.PageTitle = "会计科目";
                        table.TableName = "GL_Kmxx";
                        table.Columns = "kmdm as PK,kmmc as 项目名称,0,'',0,''";
                        table.StrWhere = " gsdm='' ";
                        goto Label_30B8;

                    case "mssql_fzhs":
                        table.PageTitle = "辅助核算项目";
                        table.TableName = "GL_Xmzl";
                        table.Columns = "xmdm as PK,xmmc as 项目名称,0,'',0,''";
                        table.StrWhere = " gsdm='' ";
                        goto Label_30B8;

                    case "pd_base_kaopingtype":
                        table.PageTitle = "工作考评大类";
                        table.TableName = "pd_base_kaopingtype";
                        table.Columns = "auto_id as PK, khtypename as 考核大类 ,0,'',0,''";
                        goto Label_30B8;

                    default:
                        goto Label_30B8;
                }
                UserModel model6 = (UserModel)this.Session["User"];
                table.PageTitle = "上级指标文号参照";
                table.TableName = "open_pd_quotaAddMoney";
                table.StrWhere = " if_show=1 ";
                if (base.Request.Params["xz"] != null)
                {
                    table.StrWhere = table.StrWhere + " and PD_QUOTA_ZJXZ='" + base.Request.Params["xz"].Trim() + "'";
                }
                if ((base.Request.Params["TZJGC"] != null) && PublicDal.PageValidate.IsInt(base.Request.Params["TZJGC"]))
                {
                    switch (int.Parse(base.Request.Params["TZJGC"]))
                    {
                        case 1:
                            table.StrWhere = table.StrWhere + " and PD_QUOTA_LWJG<=2 ";
                            break;

                        case 2:
                            table.StrWhere = table.StrWhere + " and PD_QUOTA_LWJG=3 ";
                            break;
                    }
                }
                if (base.Request["company_code"] != null)
                {
                    table.StrWhere = table.StrWhere + " and trim(company_code)='" + model6.Company.pk_corp.Trim() + "'";
                }
                table.Columns = " pd_quota_code as PK,ShowText as 指标文号,pd_up_money||'~'||PD_QUOTA_DEPART||'~'||PD_QUOTA_DEPART_NAME||'~'||PD_QUOTA_BASIS_JG||'~'||PD_QUOTA_ZJLY_NAME||'~'||PD_QUOTA_ZGKJ_NAME,'',''";
                goto Label_30B8;
            Label_1813: ;
                str6 = " pd_year=" + base.Request.Params["year"].Trim() + " and pd_project_input_company='" + ((UserModel)this.Session["user"]).Company.pk_corp + "'";
            Label_1880:
                if ((base.Request.Params["xz"] != null) && (base.Request.Params["xz"].Trim() != "0"))
                {
                    str6 = str6 + " and pd_found_xz='" + base.Request.Params["xz"].Trim() + "'";
                }
                table.StrWhere = str6;
                goto Label_30B8;
            Label_2FDD:
                companyPower = PowerClass.GetPowerString(((UserModel)HttpContext.Current.Session["User"]).CompanyPower);
            Label_3001:
                table.PageTitle = "单位信息参照";
                table.TableName = "DB_Company";
                table.Columns = "pk_corp as PK,Name as 单位名称,'',0,''";
                if (base.Request.QueryString["UsersPK"] != "admin")
                {
                    table.StrWhere = "pk_corp in (" + companyPower + ")";
                }
                goto Label_30B8;
            Label_305B:
                if ((base.Request["TABLEPK"] != null) && (base.Request["TABLEPK"].ToString() != ""))
                {
                    table.StrWhere = "TABLEPK ='" + base.Request["TABLEPK"].ToString() + "'";
                }
            Label_30B8:
                this.Session["UsualBookTable"] = table;
            }
            catch (Exception exception)
            {
                this.el = new ExceptionLog.ExceptionLog();
                this.el.ErrClassName = base.GetType().ToString();
                this.el.ErrMessage = exception.Message.ToString();
                this.el.ErrMethod = "Page_Load()";
                this.el.WriteExceptionLog(true);
                Const.OpenErrorPage("获取数据失败,请联系系统管理员!", this.Page);
            }
            finally
            {
                if (this.dbo != null)
                {
                    this.dbo.Close();
                }
            }
        }
    }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:101,代码来源:GetSession.aspx.cs


示例13: DataDelete

 private void DataDelete(string strPK)
 {
     try
     {
         this.mm = new MenuDal();
         this.dbo = new DB_OPT();
         this.dbo.Open();
         this.mm = new MenuDal();
         this.mm.MemuPK = strPK;
         this.mm.Delete(this.dbo);
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "DataDelete()";
         this.el.WriteExceptionLog(true);
         PageShowText.OpenErrorPage("操作失败,请联系系统管理员!", this.Page);
     }
     finally
     {
         if (this.dbo != null)
         {
             this.dbo.Close();
         }
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:28,代码来源:MenuList.aspx.cs


示例14: ShowData

 public void ShowData(string str)
 {
     try
     {
         this.dbo = new DB_OPT();
         this.dbo.Open();
         this.mm = new MenuDal();
         if (str != "")
         {
             str = " where " + str + " ";
         }
         DataSet set = PageUsuClass.GetPageSizeData(MenuDal.GetMenuColsName(), "DB_Menu", str, "MemuPK", " order by PowerCode ", this.Master.PageIndex, this.Master.PageSize, out this.count);
         this.Master.RecordCount = Convert.ToInt32(this.count);
         if ((set != null) && (set.Tables[0].Rows.Count > 0))
         {
             DataView defaultView = set.Tables[0].DefaultView;
             defaultView.Sort = DataListDo.GetViewSort();
             this.gvResult.DataSource = defaultView;
             this.gvResult.DataBind();
         }
         else
         {
             DataTable table = new DataTable();
             table = set.Tables[0];
             DataRow row = table.NewRow();
             table.Rows.Add(row);
             this.gvResult.DataSource = table.DefaultView;
             this.gvResult.DataBind();
         }
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "ShowData()";
         this.el.WriteExceptionLog(true);
         PageShowText.OpenErrorPage("获取数据失败,请联系系统管理员!", this.Page);
     }
     finally
     {
         if (this.dbo != null)
         {
             this.dbo.Close();
         }
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:47,代码来源:MenuList.aspx.cs


示例15: addUpdate

 public void addUpdate()
 {
     try
     {
         this.dbo = new DB_OPT();
         this.dbo.Open();
         if (((this.CompanyPk.Value.Trim() == "") || (this.txtBankName.Text.Trim() == "")) || (this.txtBankNum.Text.Trim() == ""))
         {
             Const.ShowMessage("带*的数据必须填写!", this.Page);
         }
         else
         {
             this.bmd = new BankDal();
             this.bmd.BankName = this.txtBankName.Text.Trim();
             this.bmd.BankNum = this.txtBankNum.Text.Trim();
             this.bmd.BankNumMan = this.txtBankNumMan.Text.Trim();
             this.bmd.Discription = this.txtDiscription.Text.Trim();
             this.bmd.pk_corp = this.CompanyPk.Value.Trim();
             if (base.Request["PK"] != null)
             {
                 this.bmd.BankPK = base.Request["PK"].ToString();
                 Const.UpdateSuccess(this.bmd.Update(this.dbo), this.Page);
             }
             else
             {
                 Const.AddSuccess(this.bmd.Add(this.dbo), this.Page);
             }
         }
     }
     catch (Exception exception)
     {
         this.el = new ExceptionLog.ExceptionLog();
         this.el.ErrClassName = base.GetType().ToString();
         this.el.ErrMessage = exception.Message.ToString();
         this.el.ErrMethod = "addUpdate()";
         this.el.WriteExceptionLog(true);
         Const.OpenErrorPage("操作失败,请联系管理员!", this.Page);
     }
     finally
     {
         if (this.dbo != null)
         {
             this.dbo.Close();
         }
     }
 }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:46,代码来源:newBankInfo.aspx.cs


示例16: ShowData


//.........这里部分代码省略.........
                    table.Columns.Add("pd_quota_ifxzhz_name");
                    for (int i = 0; i < table.Rows.Count; i++)
                    {
                        if (!string.IsNullOrEmpty(table.Rows[i]["PD_UP_MONEY"].ToString()))
                        {
                            this.PD_UP_MONEY += decimal.Parse(table.Rows[i]["PD_UP_MONEY"].ToString());
                        }
                    }
                    if (table.Select("PD_QUOTA_ZJXZ='项目资金'").Length > 0)
                    {
                        dt1 = table.Select("PD_QUOTA_ZJXZ='项目资金'").CopyToDataTable();
                        DataRow row1 = dt1.NewRow();
                        row1["pd_quota_fwdata"] = "合计";
                        row1["PD_UP_MONEY"] = this.PD_UP_MONEY;
                        dt1.Rows.Add(row1);
                    }

                    if (table.Select("PD_QUOTA_ZJXZ='补助性资金'").Length > 0)
                    {
                        dt2 = table.Select("PD_QUOTA_ZJXZ='补助性资金'").CopyToDataTable();
                        DataRow row2 = dt2.NewRow();
                        row2["pd_quota_fwdata"] = "合计";
                        row2["PD_UP_MONEY"] = this.PD_UP_MONEY;
                        dt2.Rows.Add(row2);

                    }
                }
                else
                {
                    DataTable table2 = set.Tables[0];
                    for (int j = 0; j < table2.Rows.Count; j++)
                    {
                        if (PublicDal.PageValidate.IsDecimal(table2.Rows[j]["PD_QUOTA_ZBXDZH"]))
                        {
                            this.PD_QUOTA_ZBXDZH += decimal.Parse(table2.Rows[j]["PD_QUOTA_ZBXDZH"].ToString());
                        }
                        if (PublicDal.PageValidate.IsDecimal(table2.Rows[j]["PD_QUOTA_MONEY_TOTAL"]))
                        {
                            this.PD_QUOTA_MONEY_TOTAL += decimal.Parse(table2.Rows[j]["PD_QUOTA_MONEY_TOTAL"].ToString());
                        }
                    }
                    if (table2.Select("PD_QUOTA_ZJXZ='项目资金'").Length > 0)
                    {
                        dt1 = table2.Select("PD_QUOTA_ZJXZ='项目资金'").CopyToDataTable();
                        DataRow row1 = dt1.NewRow();
                        row1["pd_quota_fwdata"] = "合计";
                        row1["PD_QUOTA_ZBXDZH"] = this.PD_QUOTA_ZBXDZH;
                        row1["PD_QUOTA_MONEY_TOTAL"] = this.PD_QUOTA_MONEY_TOTAL;
                        dt1.Rows.Add(row1);

                    }
                    if (table2.Select("PD_QUOTA_ZJXZ='补助性资金'").Length > 0)
                    {
                        dt2 = table2.Select("PD_QUOTA_ZJXZ='补助性资金'").CopyToDataTable();
                        DataRow row2 = dt2.NewRow();
                        row2["pd_quota_fwdata"] = "合计";
                        row2["PD_QUOTA_ZBXDZH"] = this.PD_QUOTA_ZBXDZH;
                        row2["PD_QUOTA_MONEY_TOTAL"] = this.PD_QUOTA_MONEY_TOTAL;
                        dt2.Rows.Add(row2);
                    }
                }
            }
            else
            {
                DataTable table3 = new DataTable();
                table3 = set.Tables[0];
                if (table3.Select("PD_QUOTA_ZJXZ='项目资金'").Length > 0)
                {
                    dt1 = table3.Select("PD_QUOTA_ZJXZ='项目资金'").CopyToDataTable();
                    DataRow row1 = dt1.NewRow();
                    dt1.Rows.Add(row1);
                }

                if (table3.Select("PD_QUOTA_ZJXZ='补助性资金'").Length > 0)
                {

                    dt2 = table3.Select("PD_QUOTA_ZJXZ='补助性资金'").CopyToDataTable();
                    DataRow row2 = dt2.NewRow();
                    dt2.Rows.Add(row2);
                }

            }
        }
        catch (Exception exception)
        {
            this.el = new ExceptionLog.ExceptionLog();
            this.el.ErrClassName = base.GetType().ToString();
            this.el.ErrMessage = exception.Message.ToString();
            this.el.ErrMethod = "ShowData()";
            this.el.WriteExceptionLog(true);
            Const.OpenErrorPage("获取数据失败,请联系系统管理员!", this.Page);
        }
        finally
        {
            if (this.dbo != null)
            {
                this.dbo.Close();
            }
        }
    }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:101,代码来源:ZBList.aspx.cs


示例17: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Session["user"] != null)
        {
            if (base.Request["strTitle"] != null)
            {
                this.txttitle.Value = base.Server.UrlDecode(base.Request["strTitle"].ToString().Trim());
            }
            this.Master.strTitle = this.txttitle.Value;
            this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons);
            this.Master.SearchHasGone = new SearchHandler(this.SearchControl);
            this.Master.PageNavigatorChange = new PageNavigatorHandler(this.PageChangControl);
            this.Master.gvGridView = this.gvResult;
            if (!this.Page.IsPostBack)
            {
                string userName = ((UserModel)this.Session["User"]).UserName;
                string power = ((UserModel)this.Session["User"]).Power;
                string companyPower = ((UserModel)this.Session["User"]).CompanyPower;
                try
                {
                    ButtonsModel model = null;
                    PublicDal.ShowListButton(this.Page, out model, "");
                    model.IbtDoText = "查看";
                    model.IfPrintNote = true;
                    model.IbtPrintNoteText = "打印";
                    this.Master.btModel = model;
                    this.ShowData("");
                    string currSelectedTabId = this.hidCurrentTab.Value;

                    if (!string.IsNullOrEmpty(this.hidCurrentTab.Value))
                    {
                        int tabId;
                        if (int.TryParse(currSelectedTabId, out tabId))
                        {
                            this.tabs.ActiveTabIndex = Convert.ToInt32(currSelectedTabId);
                        }
                        if (1 == tabId)
                        {
                            this.gvResult.DataSource = null;
                            this.gvResult.DataBind();
                            this.tabs.ActiveTab = this.tbSource2;
                            this.gvResult.DataSource = dt1;
                            this.gvResult.DataBind();
                            this.gvResult.Attributes.Add("style", "word-break:keep-all;word-wrap:normal");
                        }
                        else
                        {
                            this.gvResult.DataSource = null;
                            this.tabs.ActiveTab = this.tbSource1;
                            this.gvResult.DataSource = dt2;
                            this.gvResult.DataBind();
                            this.gvResult.Attributes.Add("style", "word-break:keep-all;word-wrap:normal");
                        }

                    }

                }
                catch (Exception exception)
                {
                    this.el = new ExceptionLog.ExceptionLog();
                    this.el.ErrClassName = base.GetType().ToString();
                    this.el.ErrMessage = exception.Message.ToString();
                    this.el.ErrMethod = "bind()";
                    this.el.WriteExceptionLog(true);
                    Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page);
                }
            }
        }
        else
        {
            Const.GoLoginPath_List(this.Page);
        }
    }
开发者ID:SoMeTech,项目名称:SoMeRegulatory,代码行数:73,代码来源

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Models.PersistentEvent类代码示例发布时间:2022-05-24
下一篇:
C# SpreadSheet.Worksheet类代码示例发布时间: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