Exemple #1
0
        public static AbstractClassFactory GetClassFactory(BaseBiller currentBiller)
        {
            k3BillTransfer.Bill     oldBiller = currentBiller.M_BillTransfer as k3BillTransfer.Bill;
            K3ClassEvents.BillEvent newBiller = currentBiller.M_BillTransfer as K3ClassEvents.BillEvent;
            if (oldBiller == null && newBiller == null)
            {
                //转换单据失败,抛出异常
                throw new ExceptionInitBillerFail(currentBiller.M_BillTransfer);
            }

            if (oldBiller == null)
            {
                return(new NewbillerClassFactory(currentBiller));
            }
            else
            {
                return(new OldBillerClassFactory(currentBiller));
            }
        }
 /// <summary>
 /// 老单单据头
 /// </summary>
 /// <contractEntity name="biller"></contractEntity>
 public OldBillerHead(BaseBiller biller)
 {
     this.Biller         = biller;
     this.m_BillTransfer = this.Biller.M_BillTransfer as k3BillTransfer.Bill;
 }
Exemple #3
0
 public NewBillerToolsButton(BaseBiller biller, K3ClassEvents.MenuBar oMenuBar)
 {
     this.CurrentBiller  = biller;
     this.m_BillTransfer = biller.M_BillTransfer as K3ClassEvents.BillEvent;
     this.OMenuBar       = oMenuBar;
 }
 public OldBillerClassFactory(BaseBiller currentBiller)
 {
     this._currentBiller = currentBiller;
 }
 public OldBillerToolsButton(BaseBiller biller)
 {
     this.CurrentBiller = biller;
     m_BillTransfer     = biller.M_BillTransfer as k3BillTransfer.Bill;
 }
 public OldBillerEntity(BaseBiller biller)
 {
     this.Biller = biller;
 }
Exemple #7
0
 public DBUnit(BaseBiller biller)
 {
     this.Biller = biller;
 }