// DispatchView.h: interface for the CDispatchView class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_DISPATCHVIEW_H__8543FA81_389E_11D4_964F_00C0F02C4B69__INCLUDED_) #define AFX_DISPATCHVIEW_H__8543FA81_389E_11D4_964F_00C0F02C4B69__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 //for check/combo combinations //-1 means show with no specific one //0 means don't show at all //specific value means show and query for only certain type. class CDispatchView { public: long id; CString viewname; CString viewprofile; CString virtualreport; long client; long zone; long postal; long city; long workorder; long closed; //0 = not displayed 1="closed",2="open" ,3= "both" long closeddate;//0=not displayed else display long onsite; //0 = not displayed otherwise 1="both", 2= "onsite", 3="inhouse" long schedstart; //0 = not displayed otherwise 1=any,2=today,3=week,4=month,5=between COleDateTime scheddatestart; COleDateTime scheddateend; //type field means following: //< anytime >;After...;Before...;in the last week; //in the last 2 weeks;in the last 45 days;this month;in the last 3 months; //in the last 6 months;this year;in the last 2 years;in the last 5 years; //Less than...;More than...;;; //0=Anytime //1=After woentrydate //2=Before woentrydate //3=within 1 week //4=within 2 weeks //5=last 45 days //6=within 1 month //7=within 3 months //8=within 6 months //9=within 1 year //10=within 2 years //11=within 5 years //12=Less than X days //13=More than X days // long woentrydatetype; COleDateTime woentrydate;// long schedenddate; //0=not displayed long schedtech; long wocreateddate; long lastactivity; //0 = not displayed otherwise -1= "any" or positive x meaning x days ago CString sqlcriteria; CString sqlorderby;//order by string - duh! bool IsModified; //show wo description long preview; //show invoice number long invoice; //show combined date in one column //sched date for scheduled, open workorders //closed date for scheduled closed workorders //entry date for quick workorders long date; //Show workorder overall status field long status; //Show our reference number field long ourrefnumber; //Show cust reference number field long custrefnumber; //Category long category; //Project long project; //created less than greater than days long lCreatedDays; bool operator==(CDispatchView other); CDispatchView(); virtual ~CDispatchView(); }; #endif // !defined(AFX_DISPATCHVIEW_H__8543FA81_389E_11D4_964F_00C0F02C4B69__INCLUDED_)