浏览代码

增加文件contactAdvanceSearch.json,并且实现方法offline_contactAdvancedSearch:

Pen Li 9 年之前
父节点
当前提交
85aaa2381c

二进制
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 21 - 2
RedAnt ERP Mobile/common/Functions/offline/OLDataProvider.m

@@ -1898,7 +1898,24 @@
 +(NSDictionary*) offline_contactlist :(NSMutableDictionary *) params
 {
     
-    
+//    contactType = "Sales_Order_Customer";
+//    "contact_name" = "12.03";
+//    "customer_address" = 123;
+//    "customer_cid" = 12;
+//    "customer_city" = 123;
+//    "customer_country" = 123;
+//    "customer_email" = 5464;
+//    "customer_fax" = 4564;
+//    "customer_name" = 123;
+//    "customer_phone" = 454;
+//    "customer_sales_rep" = 456465;
+//    "customer_state" = 13;
+//    "customer_zipcode" = 123;
+//    limit = 25;
+//    offset = 0;
+//    password = 123456;
+//    "price_name" = 16;
+//    user = EvanK;
     
     
     
@@ -2867,10 +2884,12 @@
     return [string stringByReplacingOccurrencesOfString:@"'" withString:@"''"];
 }
 
+#pragma mark contact search
 
 +(NSData *) offline_contactAdvancedSearch:(NSMutableDictionary *) params
 {
-    return nil;
+    NSMutableDictionary *contactAdvanceDic = [self dictionaryFileName:@"contactAdvanceSearch.json"];
+    return [RAUtils dict2data:contactAdvanceDic];
 }
 
 #pragma mark create new contact

+ 4 - 0
RedAnt ERP Mobile/iSales-NPD.xcodeproj/project.pbxproj

@@ -9,6 +9,7 @@
 /* Begin PBXBuildFile section */
 		423A4ADC1D503A53005ECE4A /* createContact.json in Resources */ = {isa = PBXBuildFile; fileRef = 423A4ADB1D503A53005ECE4A /* createContact.json */; };
 		42969C021D52F31C00FF190A /* editContact.json in Resources */ = {isa = PBXBuildFile; fileRef = 42969C011D52F31C00FF190A /* editContact.json */; };
+		42C9FB151D5B28FA001DCA8B /* contactAdvanceSearch.json in Resources */ = {isa = PBXBuildFile; fileRef = 42C9FB141D5B28FA001DCA8B /* contactAdvanceSearch.json */; };
 		42DC31131D546FBE00BCD1C6 /* category.json in Resources */ = {isa = PBXBuildFile; fileRef = 42DC31121D546FBE00BCD1C6 /* category.json */; };
 		710274251CC606C4009FD219 /* UserListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 710274241CC606C4009FD219 /* UserListViewController.m */; };
 		7111E5721C76C557004763B3 /* customer_info_template_edit.json in Resources */ = {isa = PBXBuildFile; fileRef = 7111E5711C76C557004763B3 /* customer_info_template_edit.json */; };
@@ -192,6 +193,7 @@
 /* Begin PBXFileReference section */
 		423A4ADB1D503A53005ECE4A /* createContact.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = createContact.json; sourceTree = "<group>"; };
 		42969C011D52F31C00FF190A /* editContact.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = editContact.json; sourceTree = "<group>"; };
+		42C9FB141D5B28FA001DCA8B /* contactAdvanceSearch.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = contactAdvanceSearch.json; sourceTree = "<group>"; };
 		42DC31121D546FBE00BCD1C6 /* category.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = category.json; sourceTree = "<group>"; };
 		56528CA8B8A71F67C2EE5366 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
 		6C826876B24EFB83AC94A464 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
@@ -800,6 +802,7 @@
 				71FFBBE81C60894900D91DC2 /* iSalesNetwork.m */,
 				71BF06F91D2F3CAC00981938 /* OLDataProvider.h */,
 				71BF06FA1D2F3CAC00981938 /* OLDataProvider.m */,
+				42C9FB141D5B28FA001DCA8B /* contactAdvanceSearch.json */,
 				423A4ADB1D503A53005ECE4A /* createContact.json */,
 				42969C011D52F31C00FF190A /* editContact.json */,
 				42DC31121D546FBE00BCD1C6 /* category.json */,
@@ -1255,6 +1258,7 @@
 				7162A5A01C58733400AB630E /* status_filter_cadedate_open.json in Resources */,
 				71D30A211CFBEDC6006F9477 /* default_appearance.json in Resources */,
 				42969C021D52F31C00FF190A /* editContact.json in Resources */,
+				42C9FB151D5B28FA001DCA8B /* contactAdvanceSearch.json in Resources */,
 				71777FC61C8AC97300DA2511 /* debug_category_filter.json in Resources */,
 				71DF74951C57614C00F2789C /* PhotoBorder.png in Resources */,
 				7162A55F1C58724700AB630E /* customer_info_template.json in Resources */,

+ 125 - 0
RedAnt ERP Mobile/iSales-NPD/contactAdvanceSearch.json

@@ -0,0 +1,125 @@
+{
+  "min_ver" : "160409",
+  "mode" : "Regular Mode",
+  "result" : 2,
+  "section_0" : {
+    "count" : 13,
+    "item_0" : {
+      "aname" : "Country",
+      "control" : "edit",
+      "keyboard" : "default",
+      "name" : "customer_country",
+      "value" : ""
+    },
+    "item_1" : {
+      "aname" : "Company Name",
+      "control" : "edit",
+      "keyboard" : "default",
+      "name" : "customer_name",
+      "value" : ""
+    },
+    "item_10" : {
+      "aname" : "Email",
+      "control" : "edit",
+      "keyboard" : "email",
+      "name" : "customer_email",
+      "value" : ""
+    },
+    "item_11" : {
+      "aname" : "Sales Rep",
+      "control" : "edit",
+      "keyboard" : "default",
+      "name" : "customer_sales_rep",
+      "value" : ""
+    },
+    "item_12" : {
+      "aname" : "Price Type",
+      "cadedate" : {
+        "count" : 5,
+        "val_0" : {
+          "check" : 1,
+          "value" : "West Dealer Price",
+          "value_id" : 16
+        },
+        "val_1" : {
+          "value" : "West Wholesale Price",
+          "value_id" : 17
+        },
+        "val_2" : {
+          "value" : "East Dealer Price",
+          "value_id" : 14
+        },
+        "val_3" : {
+          "value" : "East Wholesale Price",
+          "value_id" : 15
+        },
+        "val_4" : {
+          "value" : "Container",
+          "value_id" : 13
+        }
+      },
+      "control" : "enum",
+      "name" : "price_name",
+      "single_select" : "false"
+    },
+    "item_2" : {
+      "aname" : "Contact ID",
+      "control" : "edit",
+      "keyboard" : "default",
+      "name" : "customer_cid",
+      "value" : ""
+    },
+    "item_3" : {
+      "aname" : "Address",
+      "control" : "edit",
+      "keyboard" : "default",
+      "name" : "customer_address",
+      "value" : ""
+    },
+    "item_4" : {
+      "aname" : "Zip Code",
+      "control" : "edit",
+      "keyboard" : "default",
+      "name" : "customer_zipcode",
+      "value" : ""
+    },
+    "item_5" : {
+      "aname" : "State/Province",
+      "control" : "edit",
+      "keyboard" : "default",
+      "name" : "customer_state",
+      "value" : ""
+    },
+    "item_6" : {
+      "aname" : "City",
+      "control" : "edit",
+      "keyboard" : "default",
+      "name" : "customer_city",
+      "value" : ""
+    },
+    "item_7" : {
+      "aname" : "Contact Name",
+      "control" : "edit",
+      "keyboard" : "default",
+      "name" : "contact_name",
+      "value" : ""
+    },
+    "item_8" : {
+      "aname" : "Phone",
+      "control" : "edit",
+      "keyboard" : "phone",
+      "name" : "customer_phone",
+      "value" : ""
+    },
+    "item_9" : {
+      "aname" : "Fax",
+      "control" : "edit",
+      "keyboard" : "phone",
+      "name" : "customer_fax",
+      "value" : ""
+    },
+    "title" : "Contact Information"
+  },
+  "section_count" : 1,
+  "title" : "Contact Advance Search"
+}