using System; using CoreSavingLibrary; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CoreSavingLibrary.WcfNCommon; using CoreSavingLibrary.WcfShrlon; using Sybase.DataWindow; using System.Web.Services.Protocols; namespace Saving.Applications.shrlon.dlg { public partial class w_dlg_sl_loanrequest_loanrightchoose :PageWebDialog , WebDialog { private ShrlonClient shrlonService; private CommonClient commonService; //protected String createSession; protected String refreshDW; public void InitJsPostBack() { refreshDW = WebUtil.JsPostBack(this, "refreshDW"); //createSession = WebUtil.JsPostBack(this, "createSession"); } public void WebDialogLoadBegin() { try { shrlonService = wcf.Shrlon; commonService = wcf.Common; } catch { //LtServerMessage.Text = WebUtil.ErrorMessage("ติดต่อ Web Service ไม่ได้"); return; } //this.ConnectSQLCA(); if (IsPostBack) { dw_collright.RestoreContext(); } if (dw_collright.RowCount < 1) { try { str_itemchange strList = new str_itemchange(); strList = WebUtil.str_itemchange_session(this); dw_collright.Reset(); dw_collright.ImportString(strList.xml_collright, FileSaveAsType.Xml); } catch { } } } private void JsSetcollloanright() { try { string coop_id = state.SsCoopControl; string member_no = Request["memno"].ToString(); string loantype_code = Request["loantype_code"].ToString(); string sql_righ = @" select share_flag, deposit_flag, collmast_flag, maxloan_amt, dividend_flag from lnloantyperight where loantype_code = ' " + loantype_code + "' and coop_id = ' " +coop_id + "' "; } catch { } } public void CheckJsPostBack(string eventArg) { if (eventArg == "refreshDW") { RefreshDW(); } } public void WebDialogLoadEnd() { } protected void btn_confirm_Click(object sender, EventArgs e) { str_itemchange strList = new str_itemchange(); strList = WebUtil.str_itemchange_session(this); strList.xml_collright = dw_collright.Describe("DataWindow.Data.XML"); HdChkConfirm.Value = "0"; for (int i = 1; i <= dw_collright.RowCount; i++) { String operateFlag = dw_collright.GetItemString(i, "operate_flag"); if (operateFlag == "1") { HdChkConfirm.Value = "1"; } } } protected void RefreshDW() { } } }