public static void CheckFormatLotNo(EVOFramework.NZString argLotNo) { //skip checking lot no format //string strLotNo = argLotNo.NVL(""); //if ("".Equals(strLotNo)) return; //EVOFramework.ErrorItem errorItem = null; //if (strLotNo.Length < 7) //{ // errorItem = new EVOFramework.ErrorItem(argLotNo.Owner, Rubik.TKPMessages.eValidate.VLM0179.ToString()); //} //if (null != errorItem) EVOFramework.ValidateException.ThrowErrorItem(errorItem); //double decNum = 0; //if (!Double.TryParse(strLotNo.Substring(0, 7), out decNum)) //{ // errorItem = new EVOFramework.ErrorItem(argLotNo.Owner, Rubik.TKPMessages.eValidate.VLM0179.ToString()); //} //if (null != errorItem) EVOFramework.ValidateException.ThrowErrorItem(errorItem); }
public System.Data.DataTable LoadAllInvTranLogPeriod(EVOFramework.NZDateTime FromDate, EVOFramework.NZDateTime ToDate, EVOFramework.NZString ScreenType) { //EVOFramework.Database.DatabaseCredential dbCre = CommonLib.Common.CurrentDatabase.Credential;//new EVOFramework.Database.DatabaseCredential (); //dbCre.DatabaseName = dbCre.DatabaseName + "_HIST"; EVOFramework.Database.DatabaseCredential dbCre = new EVOFramework.Database.DatabaseCredential(); dbCre.DatabaseName = CommonLib.Common.CurrentDatabase.Credential.DatabaseName + "_HIST"; dbCre.Password = CommonLib.Common.CurrentDatabase.Credential.Password; dbCre.Provider = CommonLib.Common.CurrentDatabase.Credential.Provider; dbCre.ServerName = CommonLib.Common.CurrentDatabase.Credential.ServerName; dbCre.Username = CommonLib.Common.CurrentDatabase.Credential.Username; EVOFramework.Database.Database db = EVOFramework.Database.DatabaseManager.CreateDatabase(dbCre); InvTranLogDAO dao = new InvTranLogDAO(db); List <InvTranLogDTO> dtoList = dao.LoadAllInvTranLogPeriod(db, FromDate, ToDate, ScreenType); return(DTOUtility.ConvertListToDataTable(dtoList)); }
internal DataTable LoadAllInvTranLogPeriod(EVOFramework.NZDateTime FromDate, EVOFramework.NZDateTime ToDate, EVOFramework.NZString ScreenType) { InvTranLogBIZ biz = new InvTranLogBIZ(); return(biz.LoadAllInvTranLogPeriod(FromDate, ToDate, ScreenType)); }