public ActionResult _MoveTypeDropDownList(string controlName, string controlId, string selectedValue, bool? includeBlankOption, string blankOptionDescription, string blankOptionValue, bool? coupled, string IOType, bool? isChange)
        {
            ViewBag.ControlName = controlName;
            ViewBag.ControlId = controlId;
            ViewBag.Coupled = coupled;
            ViewBag.SelectedValue = selectedValue;
            ViewBag.IsChange = isChange;
            IList<MiscOrderMoveType> MoveTypeList = base.genericMgr.FindAll<MiscOrderMoveType>("from MiscOrderMoveType as m where m.IOType=?", IOType);
            if (MoveTypeList == null)
            {
                MoveTypeList = new List<MiscOrderMoveType>();
            }

            if (includeBlankOption.HasValue && includeBlankOption.Value)
            {
                MiscOrderMoveType blankMoveType = new MiscOrderMoveType();

                blankMoveType.Description = blankOptionDescription;
                MoveTypeList.Insert(0, blankMoveType);
            }

            return PartialView(new SelectList(MoveTypeList, "MoveType", "Description", selectedValue));

        }
        public ActionResult _MoveTypeDropDownList(string controlName, string controlId, string selectedValue, bool? includeBlankOption, string blankOptionDescription, string blankOptionValue, bool? coupled, string IOType, bool? isChange, string SubType, bool? enable)
        {
            ViewBag.ControlName = controlName;
            ViewBag.ControlId = controlId;
            ViewBag.Coupled = coupled;
            ViewBag.SelectedValue = selectedValue;
            ViewBag.IsChange = isChange;
            ViewBag.Enable = enable;
            List<Object> objs = new List<Object>();
            string hql = "from MiscOrderMoveType as m where 1=1  ";
            if (!string.IsNullOrWhiteSpace(SubType))
            {
                hql += " and m.SubType =? ";
                objs.Add(SubType);
            }
            if (!string.IsNullOrWhiteSpace(IOType))
            {
                hql += " and m.IOType=? ";
                objs.Add(IOType);
            }

            IList<MiscOrderMoveType> MoveTypeList = queryMgr.FindAll<MiscOrderMoveType>(hql, objs.ToArray());
            if (MoveTypeList == null)
            {
                MoveTypeList = new List<MiscOrderMoveType>();
            }

            if (includeBlankOption.HasValue && includeBlankOption.Value)
            {
                MiscOrderMoveType blankMoveType = new MiscOrderMoveType();

                blankMoveType.Description = blankOptionDescription;
                MoveTypeList.Insert(0, blankMoveType);
            }

            return PartialView(new SelectList(MoveTypeList, "MoveType", "Description", selectedValue));

        }