コード例 #1
0
ファイル: DataMemory.cs プロジェクト: dangtq72/ATT
        public static List <PortInfo> Get_All_Port()
        {
            List <PortInfo> list = new List <PortInfo>();

            try
            {
                list = PortBL.Port_GetAll();
                list = list.Where(x => x.Type == Convert.ToInt16(NaviCommon.ATT_Enum.Port_Type.CangXuat)).ToList();
                return(list);
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(new List <PortInfo>());
            }
        }
コード例 #2
0
ファイル: ContractController.cs プロジェクト: dangtq72/ATT
        public ActionResult Shipment_GetViewToInsert(int contractType, int indexDetail = 0, int indexShipment = 0)
        {
            var             portBl  = new PortBL();
            List <PortInfo> lstPort = new List <PortInfo>();

            try
            {
                lstPort               = PortBL.Port_GetAll();
                ViewBag.ListPort      = lstPort;
                ViewBag.ContractType  = contractType;
                ViewBag.IndexDetail   = indexDetail;
                ViewBag.IndexShipment = indexShipment;
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(PartialView("~/Areas/ModuleImport/Views/Contract/_Partial_Shipment_Insert.cshtml"));
        }