public void CreateReceiveNumber() { BillBiz billBiz = new BillBiz(); DateTime paymentDate = DateTime.Now; String billNumber = GenBillCodeFactory.GetBillNo("ar01", paymentDate.ToString("dd/MM/") + paymentDate.Year.ToString("0000"), "", "e1", ""); Assert.AreNotEqual(billNumber, String.Empty); }
public void The_Finance_BillBiz_Can_GetBillNo_By_pass_parameter() { String user_id = "50-1-147"; // user id ของ คปภ. ที่มีใน Table APPS_CONFIG_INPUT.USER_ID String doc_date = "01/09/2013"; BillBiz billBiz = new BillBiz(); String billNo = GenBillCodeFactory.GetBillNo(user_id, doc_date, "", "e1", ""); String strqry = "select DOCNO from APPS_TABLE_YM_DOCNO where branch_no=1 AND type='e1' AND year_month_break = '734869' AND section = '60600'"; OracleDB ora = new OracleDB(ConnectionFor.OraDB_Finance); String doc_no = ora.GetDataTable(strqry).Rows[0][0].ToString(); Assert.AreEqual(billNo, doc_no); }