Ejemplo n.º 1
0
        public ActionResult Index()
        {
            var code  = new sys_codeService();
            var model = new
            {
                urls = TradeHelper.GetIndexUrls("trailer"),
                resx = TradeHelper.GetIndexResx("内贸订单"),

                dataSource = new{
                },

                /*
                 * urls = new{
                 *  query = "/api/Trade/Trailer",
                 *  remove = "/api/Trade/Trailer/",
                 *  billno = "/api/Trade/Trailer/getnewjobo",
                 *  audit = "/api/Trade/Trailer/audit/",
                 *  edit = "/api/Trade/Trailer/edit/"
                 * },
                 * resx = new{
                 *  detailTitle = "内贸订单明细",
                 *  noneSelect = "请先选择一条内贸订单!",
                 *  deleteConfirm = "确定要删除选中的内贸订单吗?",
                 *  deleteSuccess = "删除成功!",
                 *  auditSuccess = "单据已审核!"
                 * },
                 *
                 */

                form = new{
                    JOBNO      = "",
                    TR_JOBNOIN = "",
                    TR_BLNO    = "",
                    TR_CONNO   = "",
                    TR_CARRI   = "",
                    TR_CARNO   = "",
                    TR_ETSH    = ""
                }

                /*
                 * ,
                 * defaultRow = new {
                 *
                 * },
                 * setting = new{
                 *  //idField = "JOBNO",
                 *  postFormKeys = new string[] { "Jobno" },
                 *  postListFields = new string[] { "JOBNO", "SNO", "SC_DRIVERCD", "SC_DRIVER", "SC_TRUCKCD", "SC_TRUCKNAME", "SC_FRAMECD", "SC_FRAMENO", "SC_DRIVERTEL", "SC_STARTDATE"}
                 * }
                 *
                 */
            };

            return(View(model));
        }