KIS旗舰版系统预设的业务预警只有一部分报表,当我们实际业务过程中需要增加新的业务预警该怎么操作呢?下文我以“委外订单提前预警”的增加为例详细介绍一下增加的步骤。
业务预警的进入路径如下:
进入【业务预警】界面我们可以在左边找到软件现有的各大模块,但是进入【委外加工管理系统】里点击菜单栏的【新增】时发现现有的报表对象列表里并没有“委外订单提前预警”,那么我们该怎么实现“委外订单提前预警”的添加呢?
具体实现步骤如下:
一、增加直接SQL报表“委外订单提前预警”;
1、点击【供应链】-【委外加工】-【查询分析】-【查询分析工具】;
2、点击“新建”选择“直接查询语句”点击“确定”;
3、进入图示界面直接点下一步;
4、写入查询语句;
5、修改报表标题并指定报表名称;
二、将报表发布到信息服务
1、KIS旗舰版主界面点击左上角菜单栏【系统】-【BOS集成开发工具】进入BOS平台;
2、使用有操作权限的用户登录BOS平台;
3、打开供应链-委外加工版块;
4、在右边找到增加的直接SQL报表“委外订单提前预警”发布到信息服务;
三、在业务预警中添加“委外订单提前预警”
关于业务预警可以参考我另外三篇文章进行设置:
KIS云旗舰版业务预警之妙用(上)—提醒跟进客户 超详细步骤送给你!
附:
“委外订单提前预警”语句
declare @FSupplyName nvarchar(300)
declare @FNumber nvarchar(300)
declare @FName nvarchar(300)
declare @FDeptName nvarchar(300)
declare @FEmpName nvarchar(300)
declare @FBillerName nvarchar(300)
declare @FManagerName nvarchar(300)
declare @Days varchar(10)
DECLARE @StrSql NVARCHAR(4000)
DECLARE @StrFilter NVARCHAR(4000)
SELECT @FSupplyName = '@SuppName@' SELECT @FDeptName = '@DeptName@' SELECT @FName = '@ItemName@' SELECT @FNumber = '@@ItemNumber@@' SELECT @FEmpName = '@#EmpName@#'
SELECT @FBillerName = '@BillerName@' SELECT @FManagerName = '@ManagerName@' SELECT @Days = '0' IF CONVERT(INT,FLOOR('@PreAlertDays@')) > 0
SELECT @Days = CONVERT(VARCHAR(10),FLOOR('@PreAlertDays@'))
SELECT @StrSql= 'SELECT 1007105 as #FCLASSTYPEID#,te.FInterID as #FID#, tp.FName AS FSupplyName,ti.FNumber,ti.FName,ti.FModel,tdep.FName AS FDeptName ,temp.FName AS FEmpName,tu.FName AS FBillerName,tmang.FName AS FMangerName,t.FBillNo ,terp.FName AS FItemProp,tmb.FName AS FUnitNameBase,te.FQty,temb.FName AS FUnitName,te.FAuxQty ,te.FCommitQty,te.FAuxCommitQty,te.FQty-te.FStockQty AS FUnstockQty,te.FAuxQty-te.FAuxStockQty AS FAuxUnstockQty,convert(varchar(10),te.FFetchDate,120) AS FFetchDate FROM ICSubContract t INNER JOIN ICSubContractEntry te ON t.FInterID=te.FInterID INNER JOIN t_Supplier tp ON tp.FItemID = t.FSupplyID INNER JOIN t_ICItem ti ON ti.FItemID = te.FItemID LEFT JOIN t_Department tdep ON tdep.FItemID = t.FDepartment LEFT JOIN t_Emp temp ON temp.FItemID = t.FEmployee INNER JOIN t_User tu ON tu.FUserID = t.FBillerID LEFT JOIN t_Emp tmang ON tmang.FItemID = t.FMangerID INNER JOIN t_SubMessage terp ON terp.FInterID=ti.FErpClsID INNER JOIN t_MeasureUnit tmb ON tmb.FMeasureUnitID=ti.FUnitID INNER JOIN t_MeasureUnit temb ON temb.FMeasureUnitID=te.FUnitID WHERE te.FMrpClosed = 0 and te.FInterID>0 '
SELECT @StrSql = @StrSql + ' AND DATEDIFF(d,GETDATE(),te.FFetchDate)<= ' + @Days IF LEN(@FSupplyName)>0
SELECT @StrSql = @StrSql + ' AND tp.FName =''' + @FSupplyName + '''' IF LEN(@FDeptName)>0
SELECT @StrSql = @StrSql + ' AND tdep.FName =''' + @FDeptName + '''' IF LEN(@FName)>0
SELECT @StrSql = @StrSql + ' AND ti.FName =''' + @FName + '''' IF LEN(@FNumber)>0
SELECT @StrSql = @StrSql + ' AND ti.FNumber =''' + @FNumber + '''' IF LEN(@FEmpName)>0
SELECT @StrSql = @StrSql + ' AND temp.FName =''' + @FEmpName + '''' IF LEN(@FBillerName)>0
SELECT @StrSql = @StrSql + ' AND tu.FName =''' + @FBillerName + '''' IF LEN(@FManagerName)>0
SELECT @StrSql = @StrSql + ' AND tmang.FName =''' + @FManagerName + ''''
EXEC ( @StrSql )
推荐阅读