| | |
| | | } |
| | | return res; |
| | | } |
| | | public static object _add; |
| | | internal static bool AddActionRecord(string no, int state, string forkliftNo, string extData) |
| | | { |
| | | var db = new SqlHelper<TaskAction>().GetInstance(); |
| | | |
| | | var db = new SqlHelper<TaskAction>().GetInstance(); |
| | | |
| | | var action = new TaskAction() |
| | | { |
| | | N_ACTION_CODE = state, |
| | | S_TASK_CODE = no, |
| | | S_EQ_CODE = forkliftNo, |
| | | S_EQ_TYPE = "agv", |
| | | S_DATA = extData |
| | | }; |
| | | return db.Insertable(action).ExecuteCommand() > 0; |
| | | var action = new TaskAction() |
| | | { |
| | | N_ACTION_CODE = state, |
| | | S_TASK_CODE = no, |
| | | S_EQ_CODE = forkliftNo, |
| | | S_EQ_TYPE = "agv", |
| | | S_DATA = extData |
| | | }; |
| | | return db.Insertable(action).ExecuteCommand() > 0; |
| | | |
| | | |
| | | } |
| | | internal static bool CheckActionRecordExist(string no, int code) |
| | | { |