U8销售发货单CO

文章详细描述了在U8ERP系统中使用VoucherCO_Sa类进行销售发货单的操作流程,包括登录、加载发货单、新增、审核和删除等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

增加引用VoucherCO_Sa,USSAServer

1、加载销售发货单

//登录u8
U8Login.clsLogin m_ologin = new U8Login.clsLoginClass();
if (!m_ologin.Login("SA","990","2023","demo","DEMO","2023-01-31","127.0.0.1", ""))
{strResult = "login failed ";}

//初始化 VoucherCO_Sa
VoucherCO_Sa.ClsVoucherCO_SA co_sa = new VoucherCO_Sa.ClsVoucherCO_SA();                
MSXML2.IXMLDOMDocument2 domHead = new MSXML2.DOMDocument();
MSXML2.IXMLDOMDocument2 domBody = new MSXML2.DOMDocument();
string userMode = "CS";
USSAServer.clsSystem clsSys = new USSAServer.clsSystem();
clsSys.Init(m_ologin);

//蓝字销售发货单 DispatchBlue
VoucherCO_Sa.VoucherTypeSA typeSA = VoucherCO_Sa.VoucherTypeSA.DispatchBlue;
conn.Open(m_ologin.UfDbName);
co_sa.Init(typeSA, ref m_ologin, conn, userMode, clsSys);
string vouchid="1000000002";

//加载数据到dom
co_sa.GetVoucherData(ref domHead, ref domBody,vouchid);

2、新增销售发货单

//新增发货单
object oMissing = Type.Missing;
strResult = co_sa.Save(domHead, domBody, 0, ref oMissing, ref domMsg);

//返回数据处理                
if ((string.IsNullOrEmpty(strResult))||(strResult=="True"))
{
   strResult = "set success!";
   string newID = (string)oMissing;
}

3、审核销售发货单

bVerify=true 审核,bVerify=false 弃审

//审核发货单
strResult = co_sa.VerifyVouch(ref domHead, bVerify);
if ((string.IsNullOrEmpty(strResult)) || (strResult == "True"))
{
   strResult = "verify success!";                    
}

4、删除销售发货单

//删除发货单
strResult = co_sa.Delete(ref domHead,ref domBody);
if ((string.IsNullOrEmpty(strResult)) || (strResult == "True"))
{
   strResult = "delete success!";
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值