|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
×
U8Login.clsLogin u8Login = new U8Login.clsLogin();
String sSubId = "SA";
String sAccID = "(default)@998";
String sYear = "2015";
String sUserID = "demo";
String sPassword = "DEMO";
String sDate = "2015-01-02";// "2015-11-30";
String sServer = "PCLR2PFSW9IME26";//PCLR2PFSW9IME26
String sSerial = "";
if (!u8Login.Login(ref sSubId, ref sAccID, ref sYear, ref sUserID, ref sPassword, ref sDate, ref sServer, ref sSerial))
{
string ls_ret = "";
ls_ret = "fail&用友提示:连接用友:" + u8Login.ShareString;
Marshal.FinalReleaseComObject(u8Login);
return ls_ret;
}
CalledContext callerCtx = new CalledContext();
callerCtx.subId = "SA";
callerCtx.TaskID = "";
SAWorkFlowSrv.clsSAWorkFlowSrv a = new SAWorkFlowSrv.clsSAWorkFlowSrv();
string bizObjectID = "01";
string eventID = "01.Submit"; //发货单
string voucherId = "1000000102";//发货单的dlid
string strErr = "";
string m_ufts = " 618.5520";
string Context = "";
bool iswfcontrolled = true;
string cbilltype = "01";
object login = new object();
login = u8Login;
bool b = a.DoSubmit(ref bizObjectID, ref eventID, ref voucherId, ref Context, ref callerCtx, ref m_ufts, ref iswfcontrolled, ref strErr, ref login, ref cbilltype);
return "fail&" + strErr;
返回:fail&UFLTMService::clsService.Start Require
我觉得是DoSubmit赋值有问题,有大神帮解决下,谢谢。
|
|