报销单关联显示报销人出差信息

来源:互联网 发布:神经网络 股票 知乎 编辑:程序博客网 时间:2024/04/28 22:41
//--------------------------------事件120815var _Type = parent.Request.QueryString("opentype");function SelectChargeApp2(){//if(_Type == "1")//{                 if(txtBaoXiaoRen.value=="")                      alert("请选择报销人!");                 else                 {var URL = "../../fceform/common/djframe.htm?djsn=ccxxcx_2cd966eb-c8b4-4708-a865-1508012735ba&djtype=TT&DjName=出差信息查询";URL = URL+"&DeptId="+txtDeptID.value+"&RegCode="+txtAppUserID.value+"&baoxiaoren="+txtBaoXiaoRen.value;//alert(URL);var RtrValue = window.showModalDialog(URL,'','DialogLeft:170px;DialogTop:130px;DialogWidth:750px;DialogHeight:500px;status:no;help:no');if(Trim(RtrValue) !=""){var arr = RtrValue.split('|');                                txtBaoXiaoShiJian.value=arr[1];                                dataset2.MoveFirst();                                dataset2.Fields.Field['ApplyMoney'].Value=arr[2];                                txtDeptName.value=arr[3];                                txtDeptID.value=arr[4];                                cmbPeriod.value=arr[5];           dataset2.bEdit = true;   dataset2.Update('不检查');DsToGrid(grid1,'是');}                  }//}//else//{//var e = document.getElementById("btnSelectBill");//getAddress(e);//}}
//出差信息查询表单初始函数,注取消编号
function PageInt()
{    var baoxiaoren =parent.Request.QueryString('baoxiaoren').toString();    baoxiaoren=baoxiaoren.substr(8);   //alert(baoxiaoren);    var sql="select com_dep,reg_name,atte_begintime,atte_limit,atte_reason from JHHR_Attendance_EvectionDetail where reg_name like '%"+baoxiaoren+"'";    sql+=" order by atte_begintime desc";    dataset1.Open(sql);}