⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sp_stockoutorderappend.sql

📁 Delphi6开发的HIS程序
💻 SQL
字号:

create or replace function sp_stockoutorderappend
(
  l_createby in integer
)
return integer
is
  l_departmentid integer;
  l_stockoutorderid integer;
begin
  select departmentid into l_departmentid from employee where employeeid = l_createby;
  select stockoutorder_id.nextval into l_stockoutorderid from dual;
  insert into stockoutorder
  (
    stockoutorderid,
    st,
    total,
    memo,
    isapprove,
    approvedate,
    checkoutdate,
    created,
    updated,
    createby,
    updateby,
    checkoutmethodid,
    approveby,
    departmentid,
    sectionofficeid
  )
  values
  (
    l_stockoutorderid,
    1,
    0,
    null,
    0,
    null,
    null,
    sysdate,
    sysdate,
    l_createby,
    l_createby,
    2,
    null,
    l_departmentid,
    null
  );
  return l_stockoutorderid;
end;
/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -