Exemplo n.º 1
0
        public ActionResult Index(int id)
        {
            var code = new sys_codeService();

            var MateTypeList = code.GetValueTextListByType_Xttcqw("MateType");

            if (id == 1)
            {
                MateTypeListId = new List <int>()
                {
                    1, 2, 3
                };
                MateTypeList = MateTypeList.Where(a => MateTypeListId.Contains(Convert.ToInt32(a.value))).ToList();
            }
            else if (id == 2)
            {
                MateTypeListId = new List <int>()
                {
                    0, 4, 5
                };
                MateTypeList = MateTypeList.Where(a => MateTypeListId.Contains(Convert.ToInt32(a.value))).ToList();
            }

            var model = new
            {
                dataSource = new
                {
                    ProductID    = code.GetValueTextListByType_Xttcqw("HBHC_Mes.dbo.PMS_BN_ProjectDetail", "ID value,ProductName text"),
                    MateTypeList = MateTypeList
                },
                urls = new
                {
                    query  = "/api/Mms/MES_BlankingWorkshopSetMate",
                    newkey = "/api/Mms/MES_BlankingWorkshopSetMate/getnewkey",
                    edit   = "/api/Mms/MES_BlankingWorkshopSetMate/edit"
                },
                resx = new
                {
                    noneSelect   = "请先选择一条数据!",
                    editSuccess  = "保存成功!",
                    auditSuccess = "单据已审核!"
                },
                form = new
                {
                    ContractCode = "",
                    ProductID    = ""
                },
                defaultRow = new
                {
                },
                setting = new
                {
                    idField        = "ID",
                    postListFields = new string[] { "MaterialInventoryName", "MaterialInventoryCode", "ID", "PartFigureCode", "PartName", "MaterialCode", "MateType", "SetMateName", "New_InventoryCode", "New_PartName", "New_Model", "MateParamValue", "InPlanceSize", "BlankingSize", "BlankingNum", "SetMateNum" }
                }
            };

            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            var codeService = new sys_codeService();
            var model       = new
            {
                urls = new {
                    query  = "/api/Sys/UserStatus",
                    remove = "/api/Sys/UserStatus/",
                    billno = "/api/Sys/UserStatus/getnewbillno",
                    audit  = "/api/Sys/UserStatus/audit/",
                    edit   = "/Sys/UserStatus/edit/"
                },
                resx = new {
                    detailTitle   = "单据明细",
                    noneSelect    = "请先选择一条单据!",
                    deleteConfirm = "确定要删除选中的单据吗?",
                    deleteSuccess = "删除成功!",
                    auditSuccess  = "单据已审核!"
                },
                dataSource = new{
                    status = codeService.GetValueTextListByType_Xttcqw("OnlineStatus")
                },
                form = new{
                    UserCode   = "",
                    UserName   = "",
                    UserStatus = ""
                },
                idField = "ID"
            };

            return(View(model));
        }
Exemplo n.º 3
0
        public ActionResult Index()
        {
            var code  = new sys_codeService();
            var model = new
            {
                dataSource = new{
                    lockType = code.GetValueTextListByType_Xttcqw("LockType")
                },
                urls = new{
                    query     = "/api/Mms/WMS_BN_LockMaterial",
                    newkey    = "/api/Mms/WMS_BN_LockMaterial/getnewkey",
                    edit      = "/api/Mms/WMS_BN_LockMaterial/edit",
                    lockstate = "/api/Mms/WMS_BN_LockMaterial/confirmlockmaterial"
                },
                resx = new{
                    noneSelect   = "请先选择一条数据!",
                    editSuccess  = "保存成功!",
                    auditSuccess = "单据已审核!",
                    lockmes      = "操作成功!"
                },
                form = new{
                    IncentoryCode = "",
                    IncentoryName = "",
                    WarehouseCode = "",
                    WarehouseName = "",
                    LockState     = ""
                },
                defaultRow = new {
                    LockState = 0
                },
                setting = new{
                    idField        = "ID",
                    postListFields = new string[] { "IncentoryCode", "IncentoryName", "LockQuantity", "WarehouseCode", "WarehouseName", "MaterialCategoryNum", "MaterialCategoryName", "LockState", "LockDescription", "UnLockDescription", "CreatePerson", "CreateTime", "ModifyPerson", "ModifyTime", "ID" }
                }
            };

            return(View(model));
        }