提交 84025577 authored 作者: fengzy's avatar fengzy

'commonmMOdel新增借款单查询方法'

上级 e1c77b61
......@@ -152,4 +152,11 @@ class CommonClassModel extends Model
$data = m('assetm')->getall('state = 0', 'id as value, CONCAT(num, "(",title,")") as name');
return $data;
}
//借款单(已审核)
public function getfingrjkList()
{
$data = m('c_fininfom_jk')->getall('status = 1', 'id as value, CONCAT(docnum, "(",jkname,")") as name');
return $data;
}
}
......@@ -151,23 +151,20 @@ class flow_finfybxClassModel extends flowModel
// 1585
// 金蝶
$id=$this->rs['id'];
$sql = " mid ='$id' and `table`='fininfom' ";
$option = m('option')->getall('pid = 1568','`explain`');
$option = m('option')->getall('pid = 1585','`explain`');
foreach ($option as $key => $value) {
$allcheckid[]=$value['explain'];
}
//查询流程为财务确认
$flowid = $this->getflow();
// echo "<pre>";
// var_dump($option);
if(in_array($flowid['nowcourseid'],$allcheckid)){
if($flowid['nowcheckid']=='992'){
$data=$this->db->getone('oa_personfile',"name='".$this->rs['applicant']."'");
$gonncode=$data['gonncode'];
// $data['pfbanknum'];//对方银行卡号
......@@ -210,7 +207,7 @@ class flow_finfybxClassModel extends flowModel
$cloudUrl = "http://36.110.39.211/k3cloud/";
//登陆参数
$data = array(
'5ef2c166ad1afa',//帐套Id
'5e64f6ff0bd47f',//帐套Id
'Administrator',//用户名
'666666',//密码
'2052'//语言标识359010087
......
......@@ -205,10 +205,16 @@ class flowModel extends Model
//录入页上的标题
public function inputtitle()
{
return $this->moders['name'];
}
/**
public function getwhere($where = '')
{
return parent::getwhere($where); // TODO: Change the autogenerated stub
}
/**
* 列表上要搜索的的,此方法仅用到在:webmain/flow/input/inputAction.php 行607上返回,模块接口可重写这个方法
*/
public function flowsearchfields()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论