方法的使用示例

//取員工資料 function getEmployee()

 {

 if(window.document.all.btn_query.disabled)

 { return }

 var strReturn = getEmployeeInfo("Out_Work");

 if(strReturn != null)

{ with(window.document.all)

{ txt_idno.value = getTargetStringSign(strReturn,"idno",";");

dro_dept.value = getTargetStringSign(strReturn,"dept",";"); } } }

//其它頁面調用本頁面的刷新函數

 function refresh()

 { __doPostBack('btn_read',''); } //其它頁面調用本頁面的刷新函數 function refreshByCompany()

 { __doPostBack('btn_query',''); }

 //網格單元格事件從查詢頁面把值傳導主頁面A-B

 function UltraWebGrid1_CellClickHandler(gridName, cellId, button)

 { var column = igtbl_getColumnById(cellId);

 var oRow = igtbl_getRowById(cellId);

if(column.Key == "serialno_desc")

{ window.parent.frames[1].document.all.hidd_serialno.value = oRow.getCellFromKey("serialno").getValue(); window.parent.frames[1].read();

window.parent.selectTab(1); } } 

接受頁面值B

if(!this.Page.IsPostBack)
   {
    if(this.Page.Request.QueryString["type"] != null)
    {
     string StrType = this.Page.Request.QueryString["type"];

     if(StrType == "main")
     {
      this.UltraWebTab1.Tabs.GetTab(0).Visible = true;
      this.UltraWebTab1.Tabs.GetTab(1).Visible = true;
      this.UltraWebTab1.Tabs.GetTab(2).Visible = false;
     }
     else if (StrType == "info")
     {
      this.UltraWebTab1.Tabs.GetTab(0).Visible = false;
      this.UltraWebTab1.Tabs.GetTab(1).Visible = false;
      this.UltraWebTab1.Tabs.GetTab(2).Visible = true;
     }
    }
             
    if(this.Page.Request.QueryString["serialno"] != null)
    {
     //解碼
     this.Page.Session["sys_serialno"]=new NewFrame.Class.CommonClass().GetDesDecrypt  (this.Page.Request.QueryString["serialno"]);
    }
   }

BUTTON按鈕調用JS方法

this.btn_save1.Attributes["onclick"]="javascript:return SaveConfirm();";

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值