zoukankan      html  css  js  c++  java
  • 公司用到的便利SQL

    --查询流程的相关信息   

    select  fnr.FNRID,fn.FNID,fnr.MainState,fn.FNName,fn.FNStateName from TFlowNodeRoperty fnr
      left join TFlowNodes fn on fnr.FNID = fn.FNID
        where fnr.FBID=11

    --更新操作日志

    update TOperationLog set ip='10.16.4.154',UserName='系统管理员',UserID=1 where id in (  select top 80 id from TOperationLog where ip='10.16.4.165' order by id desc)

    --TGridColumn表更新

    --select * from TGridColumn where GridID='GridOrderItem-FNR299'
    declare @GridID nvarchar(50) --GridID

    set @GridID='GridOrderItem-FNR310'

    update TGridColumn set HeaderText='产品类型',ColumnNumber=20    where GridID=@GridID and DataField='Pro_title'
    update TGridColumn set HeaderText='产品型号',ColumnNumber=30    where GridID=@GridID and DataField='Pro_model'
    update TGridColumn set HeaderText='产品规格',ColumnNumber=40    where GridID=@GridID and DataField='Pro_specs'
    update TGridColumn set HeaderText='料号',ColumnNumber=50    where GridID=@GridID and DataField='Pro_code'
    update TGridColumn set HeaderText='单位',ColumnNumber=60    where GridID=@GridID and DataField='Pro_unit'

    update TGridColumn set HeaderText='台套数量',ColumnNumber=70     where GridID=@GridID and DataField='Pro_number'
    update TGridColumn set HeaderText='组数' ,ColumnNumber=80 ,IsOpen=1,ISEdit=1   where GridID=@GridID and DataField='Group_number'

    update TGridColumn set HeaderText='方案单元数' ,ColumnNumber=90 ,IsOpen=1,ISEdit=1   where GridID=@GridID and DataField='Unit_number'

    update TGridColumn set HeaderText='方案总单元数' ,ColumnNumber=100 ,IsOpen=1,ISEdit=1   where GridID=@GridID and DataField='SumUnit_number'

    update TGridColumn set HeaderText='综合台数' ,ColumnNumber=110 ,IsOpen=1,ISEdit=1   where GridID=@GridID and DataField='Syn_number'

    update TGridColumn set HeaderText='甲供物资' ,ColumnNumber=120 ,IsOpen=1,ISEdit=1,IsRequired=1   where GridID=@GridID and DataField='PartyAMaterials'
    update TGridColumn set HeaderText='空柜' ,ColumnNumber=130 ,IsOpen=1,ISEdit=1 ,IsRequired=1  where GridID=@GridID and DataField='EmptyBox'
    update TGridColumn set HeaderText='备用投微机' ,ColumnNumber=140 ,IsOpen=1,ISEdit=1 ,IsRequired=1  where GridID=@GridID and DataField='BackUpMicroComputer'
    update TGridColumn set HeaderText='DTU' ,ColumnNumber=150 ,IsOpen=1,ISEdit=1 ,IsRequired=1  where GridID=@GridID and DataField='DTU'
    update TGridColumn set HeaderText='备注' ,ColumnNumber=160   where GridID=@GridID and DataField='Pro_remark'

  • 相关阅读:
    Java 字符串,byte[],16进制的字符串互转
    Java中char的字节数
    有向图 获取回路转
    java字符串分割处理split及特殊符号 转
    java如何直接跳出外层循环 标签
    求有向图中两点间所有路径
    五周突破N1 第五周第三单元
    5周突破N1 惯用句 1
    5周N1 300P
    5周突破N
  • 原文地址:https://www.cnblogs.com/jiangyunfeng/p/12791752.html
Copyright © 2011-2022 走看看