|
|
@@ -7,6 +7,9 @@ import com.cnd3b.common.data.Row;
|
|
|
import com.cnd3b.common.data.Rows;
|
|
|
import com.cnd3b.common.data.RowsMap;
|
|
|
import com.cnd3b.common.data.SQLFactory;
|
|
|
+import p2.pao.PaoRemote;
|
|
|
+import p2.pao.PaoSetRemote;
|
|
|
+import p2.util.P2Exception;
|
|
|
|
|
|
public class homepage extends Controller {
|
|
|
public homepage(JSONObject content) {
|
|
|
@@ -181,4 +184,37 @@ public class homepage extends Controller {
|
|
|
return getSucReturnObject().setDataByPaging(rows).preloading(1).toString();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * ÐÂÔöÕÐÉ̹ÜÀí±íµ¥
|
|
|
+ * @return
|
|
|
+ * @throws P2Exception
|
|
|
+ */
|
|
|
+ public String insertBusiness() throws P2Exception {
|
|
|
+
|
|
|
+ String province = content.getString("province");
|
|
|
+ String city = content.getString("city");
|
|
|
+ String county = content.getString("county");
|
|
|
+ String address = content.getString("address");
|
|
|
+ String fname = content.getString("fname");
|
|
|
+ String fphone = content.getString("fphone");
|
|
|
+ String fnote = content.getString("fnote");
|
|
|
+
|
|
|
+ PaoSetRemote paoSetRemote = getP2ServerSystemPaoSet("tbusiness");
|
|
|
+ PaoRemote paoRemote = paoSetRemote.addAtEnd();
|
|
|
+ paoRemote.setValue("province",province,11L);
|
|
|
+ paoRemote.setValue("city",city,11L);
|
|
|
+ paoRemote.setValue("county",county,11L);
|
|
|
+ paoRemote.setValue("address",address,11L);
|
|
|
+ paoRemote.setValue("fname",fname,11L);
|
|
|
+ paoRemote.setValue("fphone",fphone,11L);
|
|
|
+ paoRemote.setValue("fnote",fnote,11L);
|
|
|
+ paoRemote.setValue("tbusinessid",paoRemote.getUniqueIDValue(),11L);
|
|
|
+
|
|
|
+ paoSetRemote.save();
|
|
|
+
|
|
|
+
|
|
|
+ return getSucReturnObject().toString();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|