parent
d0e40460e5
commit
8b6825c116
@ -1,83 +0,0 @@
|
|||||||
#include "epm_handler_common.h"
|
|
||||||
#include <tc\tc_macros.h>
|
|
||||||
#include <tc\emh.h>
|
|
||||||
#include <tc\preferences.h>
|
|
||||||
#include <property\propdesc.h>
|
|
||||||
#include <epm\epm.h>
|
|
||||||
#include <epm\epm_toolkit_tc_utils.h>
|
|
||||||
#include <tccore\item.h>
|
|
||||||
#include <tccore\grmtype.h>
|
|
||||||
#include <tccore\grm.h>
|
|
||||||
#include <tccore\imantype.h>
|
|
||||||
#include <sa\am.h>
|
|
||||||
#include <sa\sa.h>
|
|
||||||
#include <tccore\aom.h>
|
|
||||||
#include <tccore\aom_prop.h>
|
|
||||||
#include <property\prop_errors.h>
|
|
||||||
#include <tccore\workspaceobject.h>
|
|
||||||
#include <qry\qry.h>
|
|
||||||
#include <bom\bom_attr.h>
|
|
||||||
#include <bom\bom.h>
|
|
||||||
#include <epm\signoff.h>
|
|
||||||
#include <pom\pom\pom.h>
|
|
||||||
#include <pom\pom\pom_errors.h>
|
|
||||||
#include <fclasses\tc_date.h>
|
|
||||||
#include <epm\cr.h>
|
|
||||||
#include <cfm\cfm.h>
|
|
||||||
#include <sa\am.h>
|
|
||||||
#include "tc/envelope.h"
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "ae/dataset.h"
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <string>
|
|
||||||
#include <iostream>
|
|
||||||
#include <iterator>
|
|
||||||
#include <map>
|
|
||||||
#include <vector>
|
|
||||||
#include "ce/ce.h"
|
|
||||||
#include <time.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#include <iostream>
|
|
||||||
#include <sql.h>
|
|
||||||
#include <sqlext.h>
|
|
||||||
#include "string"
|
|
||||||
#include "sstream"
|
|
||||||
#include <sa/tcfile.h>
|
|
||||||
#include <tccore/aom.h>
|
|
||||||
#include <sa/tcfile_cache.h>
|
|
||||||
#include <form/form.h>
|
|
||||||
#include "ctime"
|
|
||||||
#include "tchar.h"
|
|
||||||
#include <iostream>
|
|
||||||
#include <string>
|
|
||||||
#include <fstream>
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
extern "C" int POM_AM__set_application_bypass(logical bypass);
|
|
||||||
|
|
||||||
int jd_complate_first_task(EPM_action_message_t msg) {
|
|
||||||
//Sleep(10000);
|
|
||||||
AOM_refresh(msg.task, false);
|
|
||||||
POM_AM__set_application_bypass(true);
|
|
||||||
tag_t parent, *valids;
|
|
||||||
char *type, *status;
|
|
||||||
int valid_cnt;
|
|
||||||
AOM_ask_value_string(msg.task, "object_type", &type);
|
|
||||||
EPM_ask_parent_task(msg.task, &parent);
|
|
||||||
//AOM_ask_value_tags(parent, "valid_signoffs", &valid_cnt, &valids);
|
|
||||||
EPM_ask_attachments(msg.task, EPM_signoff_attachment, &valid_cnt, &valids);
|
|
||||||
AOM_ask_value_string(msg.task, "task_result", &status);
|
|
||||||
printf("type====>%s\nstatus====>%s\nvalid_cnt====>%d\n", type, status, valid_cnt);
|
|
||||||
if (tc_strcmp("Completed", status) == 0) {
|
|
||||||
POM_AM__set_application_bypass(false);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (tc_strcmp("EPMSelectSignoffTask", type) == 0 && valid_cnt > 0) {
|
|
||||||
printf("µ±Ç°ÈÎÎñΪsignoffÈÎÎñ\n");
|
|
||||||
ITKCALL(EPM_trigger_action(msg.task, EPM_complete_action, ""));
|
|
||||||
}
|
|
||||||
|
|
||||||
POM_AM__set_application_bypass(false);
|
|
||||||
return 0;
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue