예제 #1
0
        public IHttpActionResult GetFabricInspectionByStyle(object[] data)
        {
            vmFabricInspection _fabricInspection = null;
            vmCmnParameters    objcmnParam       = JsonConvert.DeserializeObject <vmCmnParameters>(data[0].ToString());

            try
            {
                _fabricInspection = _objFebricInspection.Get_FabricInspectionByStyle(objcmnParam);
            }
            catch (Exception e)
            {
                e.ToString();
            }
            return(Json(new
            {
                _fabricInspection
            }));
        }
예제 #2
0
        public vmFabricInspection Get_FabricInspectionByStyle(vmCmnParameters objcmnParam)
        {
            vmFabricInspection _objFabricInspection = null;

            try
            {
                GenericFactory_PrdFabricInspection_vm = new PrdFabricInspection_VM();
                string    spQuery = string.Empty;
                Hashtable ht      = new Hashtable();
                ht.Add("FinishingMRRID", objcmnParam.id); // FinsihingMRRID is Style
                spQuery = "[Get_FabricInspectionByStyle]";
                _objFabricInspection = GenericFactory_PrdFabricInspection_vm.ExecuteQuery(spQuery, ht).FirstOrDefault();
            }
            catch (Exception e)
            {
                e.ToString();
            }
            return(_objFabricInspection);
        }