public FF_BL_VM SaveFF_BL_VM(FF_BL_VM FQV) { if (!FQV.EditFlag) { FQV.FF_BL001_CODE = _CodeRep.GetCodeNew(FQV.CMPYCODE, FQV.FNMBRANCH_CODE, "FF_BL001", "INVJV", "I"); } return(_FF_BLRepo.SaveFF_BL_VM(FQV)); }
public FNINV001_VM GetFNINV_AddNew(string Cmpycode, string BRANCHCODE) { return(new FNINV001_VM { FNINV001_CODE = _CodeRep.GetCodeNew(Cmpycode, BRANCHCODE, "FNINV001", "INVJV", "V"), EditFlag = false }); }
public FF_QTN_VM SaveFF_QTN_VM(FF_QTN_VM FQV) { if (!FQV.EditFlag) { string b = _CodeRep.GetCodeNew(FQV.CMPYCODE, FQV.FNMBRANCH_CODE, "FF_QTN001", "INVJV", "I"); if (b != "N") { FQV.FF_QTN001_CODE = b; } } return(_FF_QTNRepo.SaveFF_QTN_VM(FQV)); }