方法的使用示例
2006-10-16 08:29
1131 查看
//取員工資料 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();";
{
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();";
相关文章推荐
- SQL中case when的两种使用方法示例
- .Net中FckEditor的配置和使用方法(含示例源码)
- numpy基本使用方法示例
- 提取jquery的ready()方法单独使用示例
- matplotlib基本使用方法示例
- smarty模板局部缓存方法使用示例
- AutoTools 使用方法示例
- 使用text方法获取Html元素文本信息示例
- Java私有构造器使用方法示例
- webapi跨域使用session的方法示例
- JS截取字符串常用方法整理及使用示例
- Android基于OpenGL在GLSurfaceView上绘制三角形及使用投影和相机视图方法示例
- php之Smarty模板使用方法示例详解
- 9-13 循环语句、条件判断的使用方法及其相关示例
- 泛型类和泛型方法使用示例
- Python实现在tkinter中使用matplotlib绘制图形的方法示例
- js中的数组Array定义与sort方法使用示例
- windows.ResizeTo()方法使用示例
- Python使用matplotlib绘制正弦和余弦曲线的方法示例