|
@@ -1,7 +1,7 @@
|
|
|
select t.fbillnum,t.fstatus,t1.fisperiod,t1.repairprice,t1.scenefname,t1.scenephone,t2.appsystem,t2.errcategory,t.problemmsg,t.treatmentmeasures,t.siteid,
|
|
select t.fbillnum,t.fstatus,t1.fisperiod,t1.repairprice,t1.scenefname,t1.scenephone,t2.appsystem,t2.errcategory,t.problemmsg,t.treatmentmeasures,t.siteid,
|
|
|
CONVERT(varchar,t.nexthandledate,120)nexthandledate,t.itemdescription,t.result,t.result_msg,t.fnotes,CONVERT(varchar(16),t.nextreturndate,120)nextreturndate,t.reactionrate,t.cooperativeattitude,
|
|
CONVERT(varchar,t.nexthandledate,120)nexthandledate,t.itemdescription,t.result,t.result_msg,t.fnotes,CONVERT(varchar(16),t.nextreturndate,120)nextreturndate,t.reactionrate,t.cooperativeattitude,
|
|
|
t.hyconfirmationorid ownerid,t2.afterserviceordeid,convert(varchar,t.createdate,120)createdate,case when t3.ftype='ÏîÄ¿¶©µ¥' then t4.FPROJECTNAME else t3.FPROJECTNOTES end fprojectname,
|
|
t.hyconfirmationorid ownerid,t2.afterserviceordeid,convert(varchar,t.createdate,120)createdate,case when t3.ftype='ÏîÄ¿¶©µ¥' then t4.FPROJECTNAME else t3.FPROJECTNOTES end fprojectname,
|
|
|
- t1.faddress,t2.servicetype,t.famount,t.cooperativeattitude,t.fispaid,t.fisproduct,t.fisrepairedonline,t.fisreturnfactory,t.fisshelflife,t.fmaintenancecycle,t.fnotes2,t.fonsiteaccount,t.reactionrate,t5.fname,t6.displayname fsalername,t2.fagentnum,t3.fsonum
|
|
|
|
|
|
|
+ t1.faddress,t2.servicetype,t.famount,t.cooperativeattitude,t.fispaid,t.fisproduct,t.fisrepairedonline,t.fisreturnfactory,t.fisshelflife,t.fmaintenancecycle,t.fnotes2,t.fonsiteaccount,t.reactionrate,t5.fname,t6.displayname fsalername,t2.fagentnum,t7.fagentshortname,t7.fagentname,t3.fsonum
|
|
|
from hyconfirmationorder t
|
|
from hyconfirmationorder t
|
|
|
join hyWorkorder t1 on t.fparentid=t1.hyWorkorderid
|
|
join hyWorkorder t1 on t.fparentid=t1.hyWorkorderid
|
|
|
join Afterserviceorder t2 on t2.Servicenum=t1.servernum
|
|
join Afterserviceorder t2 on t2.Servicenum=t1.servernum
|
|
@@ -9,4 +9,5 @@ from hyconfirmationorder t
|
|
|
left join TPROJECT t4 on t4.fprojectnum=t3.fprojectnum
|
|
left join TPROJECT t4 on t4.fprojectnum=t3.fprojectnum
|
|
|
left join hyworker t5 on t5.hyworkernum=t1.projectleader
|
|
left join hyworker t5 on t5.hyworkernum=t1.projectleader
|
|
|
left join pp_hr t6 on t6.hrid=t3.fsaler and t6.siteid=t3.siteid
|
|
left join pp_hr t6 on t6.hrid=t3.fsaler and t6.siteid=t3.siteid
|
|
|
|
|
+ left join tagents t7 on t7.fagentnum=t2.fagentnum and t7.siteid=t2.siteid
|
|
|
where t.fbillnum=$fbillnum$
|
|
where t.fbillnum=$fbillnum$
|