public DataTable QueryByLike(ArrayList ParameterList) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); return dbo.doQueryByLike(ParameterList); } catch (Exception ex) { throw ex; } }
public void QueryLocateSection(out string strOutLS, out string strInLS) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); dbo.QueryLocateSection(out strOutLS, out strInLS); } catch (Exception ex) { throw ex; } }
/// <summary> /// 基本表單新增BCO /// </summary> /// <param name="ParameterList">輸入變數</param> /// <param name="RootDBT">是否有主交易,無主交易輸入null</param> /// <returns>回傳影響筆數</returns> public int CreateAssign(ArrayList ParameterList, DbTransaction RootDBT, DataTable dt_Detail, out string sAssignNo, out string sAcceptNo, out string sOutNo) { int PID = 0; // string sAssignNo; bool IsRootTranscation = false; try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); //判斷是否有傳入Root Transcation IsRootTranscation = (RootDBT == null) ? true : false; #region 啟動交易或指定RootTranscation if (IsRootTranscation) { //獨立呼叫啟動Transcation Conn = USEDB.CreateConnection(); Conn.Open(); DBT = Conn.BeginTransaction(); } else { DBT = RootDBT; } #endregion PID = dbo.doMasterCreate(DBT, ParameterList, out sAssignNo); // PID = 5454; sAssignNo = "AS90507030"; sAcceptNo = ""; sOutNo = ""; foreach (DataRow dRow in dt_Detail.Rows) { //ParameterList[3] : CREATEUID dbo.doDetailCreate(DBT, dRow, PID, sAssignNo, ParameterList[3].ToString()); } // ParameterList[0] : Accept Date ; ParameterList[3] : CREATEUID dbo.doAssignAcceptNoOutNo(DBT, ParameterList[0].ToString(), sAssignNo, ParameterList[3].ToString() , out sAcceptNo, out sOutNo); #region 交易成功 if (IsRootTranscation) { //獨立呼叫Transcation成立 DBT.Commit(); } #endregion return PID; } catch (Exception ex) { #region 交易失敗 if (IsRootTranscation) { //獨立呼叫Transcation失敗 DBT.Rollback(); } #endregion throw ex; } finally { #region 判斷是否關閉交易連線 if (IsRootTranscation) { //獨立呼叫Transcation,關閉連線 if (Conn.State == ConnectionState.Connecting) { Conn.Close(); } } #endregion } }
public bool checkChanItem(ArrayList ParameterList) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); return dbo.CheckChanItem(ParameterList); } catch (Exception ex) { throw ex; } }
public int ExportAssign(ArrayList ParameterList, out string sTranNo) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); return dbo.doExportAssign(ParameterList, out sTranNo); } catch (Exception ex) { throw ex; } }
public DataTable GetStoreByChanNo(string sChanNo) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); return dbo.doGetStoreByChanNo(sChanNo); } catch (Exception ex) { throw ex; } }
public bool CheckWdsItem(ArrayList ParameterList, out string strResult, out string strMSG) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); return dbo.doCheckWdsItem(ParameterList, out strResult, out strMSG); } catch (Exception ex) { throw ex; } }
public bool QueryItemData(ArrayList ParameterList, out string sChanItem , out string sListPrice, out string sTTLAssignQty, out string sSTAcceptQty , out string sOnhdQty, out string sSecOnhdQty, out string sMessage) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); return dbo.doQueryItemData(ParameterList, out sChanItem, out sListPrice, out sTTLAssignQty, out sSTAcceptQty, out sOnhdQty, out sSecOnhdQty, out sMessage); } catch (Exception ex) { throw ex; } }
public void QueryItemListPriceTTLQty(ArrayList ParameterList, out string sListPrice, out string sTTLQty) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); dbo.doQueryItemListPriceTTLQty(ParameterList, out sListPrice, out sTTLQty); } catch (Exception ex) { throw ex; } }
public void QueryChanNoByItemPeriod(string sItem, string sPeriod, out string sChanNo, out string sStore, out string sAcceptQty) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); dbo.doChanNoByItemPeriod(sItem, sPeriod, out sChanNo, out sStore, out sAcceptQty); } catch (Exception ex) { throw ex; } }
public DataTable QueryByAcceptNo(string sAcceptNo) { try { DBO.MaintainAssignDBO dbo = new MaintainAssignDBO(ref USEDB); return dbo.doQueryByAcceptNo(sAcceptNo); } catch (Exception ex) { throw ex; } }