예제 #1
0
        public static MOSSContext GetInstance(SPWeb web)
        {
            if (_context == null)
            {
                _context = new MOSSContext(web);
            }

            return _context;
        }
예제 #2
0
파일: WF.cs 프로젝트: porter1130/MyTest
 public WF(MOSSContext context)
     : base(context)
 {
     WF.context = base._context;
     if (context.CurrList == null)
     {
         throw new Exception("The Current Context List is null, please set it.");
     }
 }
예제 #3
0
        public BaseTaskStep(MOSSContext context)
        {
            SPListItem item = context.CurrItem;
            SPUser user = context.ApplicantSPUser;

            this._approveTaskTilte = string.Format(this._title, user.Name, context.WfName, "approval");
            this._confirmTaskTilte = string.Format(this._title, user.Name, context.WfName, "confirm");
            this._checkTaskTilte = string.Format(this._title, user.Name, context.WfName, "approval");
            this._completeTaskTilte = string.Format(this._completeTaskTilte, context.WfName);

            this._approveUrl = string.Format(this._url, context.WfName, "ApproveForm.aspx");
            this._confirmUrl = string.Format(this._url, context.WfName, "ConfirmForm.aspx");
            this._checkUrl = string.Format(this._url, context.WfName, "CheckForm.aspx");
            this._editUrl = string.Format(this._url, context.WfName, "EditForm.aspx");
        }
예제 #4
0
 public TravelExpenseClaimWF(MOSSContext context)
     : base(context)
 {
 }
예제 #5
0
 public NonTradeWF(MOSSContext context)
     : base(context)
 {
 }
예제 #6
0
 public BaseWF CreateWF(MOSSContext context)
 {
     return new NonTradeWF(context);
 }
예제 #7
0
 public PurchaseRequestWF(MOSSContext context)
     : base(context)
 {
 }
예제 #8
0
 public TravelRequestWF(MOSSContext context)
     : base(context)
 {
     context.CurrList = context.GetListByName(SPListName.AcceleratorWorkflow);
 }
예제 #9
0
 public BaseWF CreateWF(MOSSContext context)
 {
     return new TravelRequestWF(context);
 }
예제 #10
0
 public BaseWF CreateWF(MOSSContext context)
 {
     return new CashAdvanceWF(context);
 }
예제 #11
0
 public BaseWF CreateWF(MOSSContext context)
 {
     return new PurchaseRequestWF(context);
 }
예제 #12
0
 public CashAdvanceWF(MOSSContext context)
     : base(context)
 {
     context.CurrList = context.GetListByName(SPListName.CashAdvanceRequest);
 }
예제 #13
0
 public BaseWF CreateWF(MOSSContext context)
 {
     return new TravelExpenseClaimWF(context);
 }
예제 #14
0
파일: BaseWF.cs 프로젝트: porter1130/MyTest
 public BaseWF(MOSSContext context)
 {
     this._context = context;
     this._web = context.Currweb;
 }
예제 #15
0
 public BaseWF CreateWF(MOSSContext context)
 {
     return new PaymentRequestWF(context);
 }
예제 #16
0
 public PaymentRequestWF(MOSSContext context)
     : base(context)
 {
 }