Esempio n. 1
0
        public static string GenerateStockOrderCode(SysEnum.BILL_TYPE stockType)
        {
            string stockOrderCode = string.Empty;

            switch (stockType)
            {
            case SysEnum.BILL_TYPE.BILL_PURCHASE:
                stockOrderCode = new IDGenerateHelper().JFGenerateStockOrderCode("BP");
                break;

            case SysEnum.BILL_TYPE.STORE_IN:
                stockOrderCode = new IDGenerateHelper().JFGenerateStockOrderCode("SI");
                break;

            case SysEnum.BILL_TYPE.STORE_OUT:
                stockOrderCode = new IDGenerateHelper().JFGenerateStockOrderCode("SO");
                break;

            case SysEnum.BILL_TYPE.EmploySalary:
                stockOrderCode = new IDGenerateHelper().JFGenerateStockOrderCode("ES");
                break;
            }

            return(stockOrderCode);
        }
Esempio n. 2
0
 public IDGenerateHelper GetInstance()
 {
     if (ig == null)
     {
         ig = new IDGenerateHelper();
     }
     return(ig);
 }