//取員工資料 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();";