亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pz_sh.aspx.cs

?? 企業(yè)管理信息化之財務(wù)管理系統(tǒng)
?? CS
?? 第 1 頁 / 共 2 頁
字號:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using com.unicafe.ui;
using com.unicafe.common;
using com.unicafe.security;
using com.ascs.plp.common;
using com.ascs.plp.publics;

namespace PLP.CWZZ.PZGL
{
	/// <summary>
	/// PZ_SH 的摘要說明。
	/// </summary>
	public class PZ_SH : com.unicafe.ui.UnicafePage
	{
		protected System.Web.UI.WebControls.Label Label1;
		protected System.Web.UI.WebControls.LinkButton LinkButton5;
		protected System.Web.UI.WebControls.LinkButton LinkButton4;
	
		protected System.Web.UI.WebControls.DataGrid DataGrid1;
		protected System.Web.UI.WebControls.Label Label2;
		protected System.Web.UI.WebControls.Label Label3;
		protected System.Web.UI.WebControls.Label Label4;
		
		SqlConnection cn = new SqlConnection (com.unicafe.common.Configuration.GetDBConnectionString());
		Com.Ascs.Plp.CW.CW_PZ CW_PZ = new Com.Ascs.Plp.CW.CW_PZ();
		Com.Ascs.Plp.CW.CW_PZMgr CW_PZMgr = new Com.Ascs.Plp.CW.CW_PZMgr();
		Com.Ascs.Plp.CW.CW_KMYE CW_KMYE = new Com.Ascs.Plp.CW.CW_KMYE();
		Com.Ascs.Plp.CW.CW_KMYE CW_KMYEADD = new Com.Ascs.Plp.CW.CW_KMYE();
		protected System.Web.UI.WebControls.DropDownList DDL_KJQJBH;
		protected System.Web.UI.WebControls.DropDownList DDL_KJND;
		protected System.Web.UI.WebControls.LinkButton LinkButton1;
		protected System.Web.UI.WebControls.Panel PanelSH;
		protected System.Web.UI.WebControls.LinkButton LinkButton2;
		protected System.Web.UI.WebControls.Label Label6;
		protected System.Web.UI.WebControls.Label Label7;
		protected System.Web.UI.WebControls.Panel Panel1;
		protected System.Web.UI.WebControls.Panel Panel2;
		protected System.Web.UI.WebControls.Panel Panel3;
		protected System.Web.UI.WebControls.Panel Panel4;
		Com.Ascs.Plp.CW.CW_KMYEMgr  CW_KMYEMgr = new Com.Ascs.Plp.CW.CW_KMYEMgr();
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			try
			{
				this.VerifyPage();                            //登錄檢查
				this.VerifyPage("zz_pzsh_mgr");
				// 在此處放置用戶代碼以初始化頁面
				if(!this.IsPostBack)  //判斷第一次顯示
				{
					this.Panel1.Visible=true;
					this.Panel4.Visible=true;
					this.Panel2.Visible=false;
					this.Panel3.Visible=false;
					ViewState["JGDM"]=this.CurrentJGXX.JGDM.ToString();
					ViewState["EmployID"]=this.CurrentEmployee.EmplID;
					this.Label1.Text=this.CurrentEmployee.EmplName;
					ViewState["SH"]="0";

					string[] DQKJ=this.GetDQKJQJ(this.CurrentJGXX.JGDM.ToString());
					ViewState["KJND"]=DQKJ[1];
					ViewState["KJQJBH"]=DQKJ[0];
					ViewState["PZBH"]="0";
				
					this.DDL_KJQJBHBind();

					//ViewState["credit"] = credit;                 //首次加載時,將判斷標志賦值給一個視圖狀態(tài)值保存在客戶端z

					ViewState["sql"]= string.Format("select * from CW_PZ where JGDM='{0}' and KJND ='{1}' and KJQJ='{2}'  and GZBJ='0' and BZ='3' order by PZBH DESC",ViewState["JGDM"].ToString(),ViewState["KJND"].ToString(),ViewState["KJQJBH"].ToString()) ;

					string sql = ViewState["sql"].ToString();


					//處理DataGrid控件(綁定DataGrid控件 -> 檢查是否需要定位 -> 給導(dǎo)航文本賦值)
					if(CommonService.HandleDataGrid(this, sql, DataGrid1, "DataSH", Label2, Label3, Label4) == false)
						this.Response.Redirect("../../publics/Error.aspx?errmsg=在處理數(shù)據(jù)時發(fā)生錯誤。"); 

				}
				else
				{
					//檢查回發(fā)的請求操作是否是要進入上頁或下頁
					if(CommonService.PageNavigate(this, DataGrid1, "DataSH", Label2, Label3, Label4) == false)
						this.Response.Redirect("../../publics/Error.aspx?errmsg=在處理數(shù)據(jù)時發(fā)生錯誤。");
				}
			}
			catch(Exception e1)
			{
				LogService.Write ("憑證顯示時產(chǎn)生異常。");
				LogService.Write (e1.Message);
				Prompt.PromptError(this,"憑證顯示時產(chǎn)生異常。");
			}
			
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN:該調(diào)用是 ASP.NET Web 窗體設(shè)計器所必需的。
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// 設(shè)計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內(nèi)容。
		/// </summary>
		private void InitializeComponent()
		{    
			this.DDL_KJND.SelectedIndexChanged += new System.EventHandler(this.DDL_KJND_SelectedIndexChanged);
			this.DDL_KJQJBH.SelectedIndexChanged += new System.EventHandler(this.DDL_KJQJBH_SelectedIndexChanged);
			this.LinkButton2.Click += new System.EventHandler(this.LinkButton2_Click);
			this.LinkButton1.Click += new System.EventHandler(this.Linkbutton3_Click);
			this.LinkButton5.Click += new System.EventHandler(this.LinkButton5_Click);
			this.LinkButton4.Click += new System.EventHandler(this.LinkButton4_Click);
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion

		private void Linkbutton3_Click(object sender, System.EventArgs e)
		{
			try
			{
				this.SH_Dispose(this.LinkButton1.Text.Trim());
			}
			catch(Exception e1)
			{
				string strErr=string.Format("{0}時產(chǎn)生異常。",this.LinkButton1.Text);
				LogService.Write (strErr);
				LogService.Write (e1.Message);
				Prompt.PromptError(this,strErr);
			}
		}
		
		private void DDL_KJNDBind(string KJND)
		{
			string strsql2=string.Format("SELECT KJND FROM CW_KJQJ  where JGDM='{0}' GROUP BY KJND",ViewState["JGDM"].ToString());
			DataTable dtKJND=this.CW_PZMgr.CreateDataTableFromSql(strsql2);
			this.DDL_KJND.DataSource=dtKJND;
			this.DDL_KJND.DataTextField="KJND";
			this.DDL_KJND.DataValueField="KJND";
			this.DDL_KJND.DataBind();
			this.DDL_KJND.SelectedIndex=-1;
			if(KJND.Trim()!=string.Empty)
				this.DDL_KJND.Items.FindByValue(KJND.Trim()).Selected=true;
		}

		private void DDL_KJND_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			try
			{
				ViewState["KJND"]=this.DDL_KJND.SelectedItem.ToString();
				this.DDL_KJQJBH.SelectedIndex=0;
				ViewState["KJQJBH"]=this.DDL_KJQJBH.SelectedItem.Value.ToString();
				this.DDL_KJQJBHBind();
				if(ViewState["SH"].ToString()=="0")
				{
					ViewState["sql"]=string.Format("select * from CW_PZ where JGDM='{0}' and KJND ='{1}' and KJQJ='{2}'  and GZBJ='0' and BZ='3' order by PZBH DESC",ViewState["JGDM"].ToString(),ViewState["KJND"].ToString(),ViewState["KJQJBH"].ToString()) ;
				}
				else
				{
					ViewState["sql"]=string.Format("select * from CW_PZ where JGDM='{0}' and KJND ='{1}' and KJQJ='{2}'  and GZBJ='1' order by PZBH DESC",ViewState["JGDM"].ToString(),ViewState["KJND"].ToString(),ViewState["KJQJBH"].ToString()) ;
				}
				//處理DataGrid控件(綁定DataGrid控件 -> 檢查是否需要定位 -> 給導(dǎo)航文本賦值)
				if(CommonService.HandleDataGrid(this, ViewState["sql"].ToString(), DataGrid1, "DataSH", Label2, Label3, Label4) == false)
					this.Response.Redirect("../../publics/Error.aspx?errmsg=在處理數(shù)據(jù)時發(fā)生錯誤。"); 
			}
			catch(Exception e1)
			{
				LogService.Write ("會計年度選擇時產(chǎn)生異常。");
				LogService.Write (e1.Message);
				Prompt.PromptError(this,"會計年度選擇時產(chǎn)生異常。");
			}
		}

		private void DDL_KJQJBHBind()
		{
			string strsql=string.Empty;
			if(ViewState["KJND"]!=null)
			{
				strsql=string.Format(" Select * from CW_KJQJ where KJND='{0}' and JGDM='{1}' order by KSRQ",ViewState["KJND"].ToString(),ViewState["JGDM"].ToString());
				this.DDL_KJNDBind(ViewState["KJND"].ToString());
			}
			DataTable dt=this.CW_KMYEMgr.CreateDataTableFromSql(strsql);
			if(dt.Rows.Count>0)
			{
				this.DDL_KJQJBH.DataSource=dt;
				this.DDL_KJQJBH.DataTextField="KJQJBH";
				this.DDL_KJQJBH.DataValueField="KJQJBH";
				this.DDL_KJQJBH.DataBind();
				this.DDL_KJQJBH.SelectedIndex=-1;
				if(ViewState["KJQJBH"]!=null&&ViewState["KJQJBH"].ToString().Trim()!=string.Empty)
					this.DDL_KJQJBH.Items.FindByValue(ViewState["KJQJBH"].ToString().Trim()).Selected=true;
			}
			
		}


		private void LinkButton4_Click(object sender, System.EventArgs e)
		{
			try
			{
				this.Panel1.Visible=false;
				this.Panel4.Visible=false;
				this.Panel2.Visible=true;
				this.Panel3.Visible=true;
				this.LinkButton1.Text="取消審核過帳";
				ViewState["SH"]="1";
				this.PanelSH.Visible=false;
				ViewState["sql"]=string.Format("select * from CW_PZ where JGDM='{0}' and KJND ='{1}' and KJQJ='{2}'  and GZBJ='1' order by PZBH DESC",ViewState["JGDM"].ToString(),ViewState["KJND"].ToString(),ViewState["KJQJBH"].ToString()) ;
				//處理DataGrid控件(綁定DataGrid控件 -> 檢查是否需要定位 -> 給導(dǎo)航文本賦值)
				if(CommonService.ReBindDataGrid(this, ViewState["sql"].ToString(), DataGrid1, "DataSH", Label2, Label3, Label4) == false)
					this.Response.Redirect("../../publics/Error.aspx?errmsg=在處理數(shù)據(jù)時發(fā)生錯誤。");
			}
			catch(Exception e1)
			{
				LogService.Write ("顯示已審核過帳憑證時產(chǎn)生異常。");
				LogService.Write (e1.Message);
				Prompt.PromptError(this,"顯示已審核過帳憑證時產(chǎn)生異常。");
			}
			
		}

		private void LinkButton5_Click(object sender, System.EventArgs e)
		{
			try
			{
				this.Panel1.Visible=true;
				this.Panel4.Visible=true;
				this.Panel2.Visible=false;
				this.Panel3.Visible=false;
				this.LinkButton1.Text="審核過帳";
				ViewState["SH"]="0";
				this.PanelSH.Visible=true;
				ViewState["sql"]=string.Format("select * from CW_PZ where JGDM='{0}' and KJND ='{1}' and KJQJ='{2}'  and GZBJ='0' and BZ='3' order by PZBH DESC",ViewState["JGDM"].ToString(),ViewState["KJND"].ToString(),ViewState["KJQJBH"].ToString()) ;
				//處理DataGrid控件(綁定DataGrid控件 -> 檢查是否需要定位 -> 給導(dǎo)航文本賦值)
				if(CommonService.ReBindDataGrid(this, ViewState["sql"].ToString(), DataGrid1, "DataSH", Label2, Label3, Label4) == false)
					this.Response.Redirect("../../publics/Error.aspx?errmsg=在處理數(shù)據(jù)時發(fā)生錯誤。");
			}
			catch(Exception e1)
			{
				LogService.Write ("顯示未審核過帳憑證時產(chǎn)生異常。");
				LogService.Write (e1.Message);
				Prompt.PromptError(this,"顯示未審核過帳憑證時產(chǎn)生異常。");
			}
		}

		private ArrayList GetPk(string CheckBoxName,string[] DataTypes,string[] Pk,DataGrid dg)
		{
			ArrayList ArPks=new ArrayList();
			int n=0;
			if(dg.Items.Count>0)
			{
				for (int i=0; i<dg.Items.Count; i++)
				{
					//將當前行賦值給一個DataGridItem對象
					DataGridItem _item = dg.Items[i];

					//判斷當前行上的CheckBox控件賦值給一個CheckBox對象
					CheckBox CheckFlag = (CheckBox)_item.FindControl(CheckBoxName);   

					//判斷當前行上的復(fù)選框是否被選中,如果被選中則進行刪除處理,否則不予處理
					if(CheckFlag.Checked == true)
					{
						//獲取關(guān)鍵字的值,逐個加入對象數(shù)組obj

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人在线视频网址| 三级欧美韩日大片在线看| 国产精品自拍一区| 久久日韩粉嫩一区二区三区| 国内精品免费**视频| 国产日韩精品视频一区| 99久久99久久精品免费观看| 亚洲精品成人少妇| 69堂成人精品免费视频| 精品一区二区三区视频| 国产精品久久久久精k8| 欧美自拍偷拍午夜视频| 日韩精品亚洲专区| 久久免费的精品国产v∧| 成人黄色777网| 亚洲成人黄色影院| ww亚洲ww在线观看国产| av不卡免费电影| 香蕉成人伊视频在线观看| 欧美一区二区免费| 黄页网站大全一区二区| 国产精品乱人伦一区二区| 欧美在线短视频| 国产在线精品免费| 一区二区三区精品在线| 欧美成人bangbros| 99在线视频精品| 蜜臀久久99精品久久久画质超高清 | 日韩欧美综合一区| 风间由美中文字幕在线看视频国产欧美| 亚洲欧洲成人精品av97| 欧美一区欧美二区| 99久久精品国产精品久久| 天堂久久一区二区三区| 国产精品超碰97尤物18| 欧美一级日韩免费不卡| 成人av先锋影音| 秋霞电影网一区二区| 国产精品电影一区二区| 精品久久久三级丝袜| 91成人在线免费观看| 国产成人免费视频| 麻豆国产精品官网| 亚洲最大成人综合| 国产精品久久久久久妇女6080| 91精品国产乱码| 色综合久久久久网| 国产成人精品亚洲777人妖 | 国产精品久线在线观看| 日韩视频一区二区在线观看| 欧美在线播放高清精品| 成人免费观看视频| 精品一区二区三区久久| 香蕉加勒比综合久久| 一区二区三区欧美日| 国产精品久久久久久久浪潮网站| 日韩欧美中文字幕精品| 欧美日韩免费视频| 色美美综合视频| 99re亚洲国产精品| 成人不卡免费av| 国产精品一区二区久久不卡| 精品中文字幕一区二区| 毛片基地黄久久久久久天堂| 亚洲成精国产精品女| 亚洲精品va在线观看| 亚洲私人黄色宅男| 亚洲视频一区二区在线观看| 337p日本欧洲亚洲大胆精品| 精品国产污网站| 精品少妇一区二区三区视频免付费 | 亚洲乱码精品一二三四区日韩在线| 国产午夜亚洲精品羞羞网站| 欧美xxxx在线观看| 26uuu另类欧美| 久久久精品日韩欧美| 久久久91精品国产一区二区三区| 精品嫩草影院久久| 2023国产精品| 欧美国产日韩精品免费观看| 国产精品嫩草影院com| 国产精品午夜在线| 亚洲欧美激情视频在线观看一区二区三区 | 最新国产精品久久精品| 国产精品卡一卡二卡三| 亚洲人快播电影网| 亚洲一区二区三区在线播放| 视频一区二区三区入口| 毛片av中文字幕一区二区| 国内精品免费**视频| 成人午夜免费电影| 在线视频综合导航| 91精品国产综合久久久蜜臀图片| 日韩一级完整毛片| 国产视频在线观看一区二区三区| 国产精品久久久久一区二区三区 | 国产乱子伦视频一区二区三区 | 久久精品国产亚洲高清剧情介绍| 老鸭窝一区二区久久精品| 国产在线播放一区二区三区| 成人一区二区视频| 在线观看中文字幕不卡| 51精品视频一区二区三区| 久久一区二区三区四区| 中文字幕一区二区三区色视频| 亚洲欧美偷拍卡通变态| 视频一区二区三区中文字幕| 激情都市一区二区| 成人app网站| 欧美日韩的一区二区| 亚洲精品在线观| 亚洲色大成网站www久久九九| 亚洲亚洲人成综合网络| 激情文学综合网| 色8久久精品久久久久久蜜| 日韩欧美不卡在线观看视频| 自拍偷拍国产精品| 蜜臀av亚洲一区中文字幕| 99在线精品观看| 这里只有精品电影| 亚洲天堂a在线| 国产又粗又猛又爽又黄91精品| 色综合一区二区三区| 精品久久久久久久久久久久久久久久久| 中文字幕不卡的av| 日本成人中文字幕在线视频| 国产精品69久久久久水密桃| 欧美老肥妇做.爰bbww视频| 国产色产综合产在线视频| 三级欧美在线一区| 日本精品一级二级| 国产欧美一区二区精品久导航| 亚洲综合在线观看视频| 国产成人久久精品77777最新版本| 欧美无砖专区一中文字| 国产日韩视频一区二区三区| 午夜av电影一区| 91麻豆免费观看| 日本一区二区三区视频视频| 毛片av一区二区| 欧美日韩三级视频| 亚洲蜜桃精久久久久久久| 国产美女娇喘av呻吟久久| 欧美精品色一区二区三区| 亚洲色图一区二区| 粉嫩av一区二区三区在线播放| 欧美一区二区三区婷婷月色| 亚洲日本在线天堂| 国产91精品久久久久久久网曝门| 日韩欧美自拍偷拍| 日韩1区2区日韩1区2区| 欧美日韩亚洲综合在线 | 久久久国际精品| 久久91精品国产91久久小草| 在线观看91精品国产麻豆| 一区二区三区中文在线观看| 91网页版在线| 亚洲三级在线免费观看| av在线一区二区三区| 中文字幕在线观看一区二区| 不卡的av电影| 中文字幕日韩精品一区| av不卡在线观看| 亚洲欧美日韩国产一区二区三区| 丁香亚洲综合激情啪啪综合| 久久精品亚洲精品国产欧美kt∨| 久久精品国产精品亚洲综合| 欧美一级淫片007| 日本美女一区二区| 精品久久人人做人人爱| 国内精品国产成人国产三级粉色 | 久久成人免费网| 日韩一区二区三区免费看| 青青青爽久久午夜综合久久午夜 | 国产一区二区三区久久久| 26uuuu精品一区二区| 国产 日韩 欧美大片| 中文字幕精品在线不卡| 91麻豆国产香蕉久久精品| 一区二区三区在线观看动漫| 欧美色网一区二区| 日韩高清不卡一区| 精品国产露脸精彩对白| 春色校园综合激情亚洲| 国产精品久久久久影院老司| 日本道免费精品一区二区三区| 亚洲国产视频网站| 日韩欧美在线不卡| 国产剧情在线观看一区二区 | 亚洲最色的网站| 91精品国产aⅴ一区二区| 精品在线播放免费| 亚洲欧洲日韩在线| 欧美日韩大陆一区二区| 精品综合免费视频观看| 自拍偷拍欧美激情| 欧美一级久久久| 91在线高清观看| 麻豆精品一二三| 亚洲婷婷综合色高清在线|