コード例 #1
0
        public static void WMUpdRequestPartPrice(object objRequest, int ProdID)
        {
            iPartRequestClient objService = new iPartRequestClient();

            try
            {
                Dictionary <string, object> dictionary = new Dictionary <string, object>();
                dictionary = (Dictionary <string, object>)objRequest;
                CustomProfile profile = CustomProfile.GetProfile();
                string        uom     = objService.GetUOMName(Convert.ToInt64(dictionary["UOMID"]), profile.DBConnection._constr);
                POR_SP_GetPartDetail_ForRequest_Result PartRequest = new POR_SP_GetPartDetail_ForRequest_Result();
                PartRequest.Sequence   = Convert.ToInt64(dictionary["Sequence"]);
                PartRequest.RequestQty = Convert.ToDecimal(dictionary["RequestQty"]); PartRequest.UOM = uom;
                PartRequest.UOMID      = Convert.ToInt64(dictionary["UOMID"]);
                PartRequest.Total      = Convert.ToDecimal(dictionary["Total"]);
                PartRequest.Price      = Convert.ToDecimal(dictionary["Price"]);
                // PartRequest.IsPriceChange = Convert.ToInt16(dictionary["IsPriceChange"]);
                decimal price            = Convert.ToDecimal(dictionary["Price"]);
                int     ISPriceChangedYN = objService.IsPriceChanged(ProdID, price, profile.DBConnection._constr);
                if (ISPriceChangedYN == 0)
                {
                    PartRequest.IsPriceChange = 0;
                }
                else
                {
                    PartRequest.IsPriceChange = 1;
                }
                objService.UpdatePartRequest_TempData12(HttpContext.Current.Session.SessionID, ObjectName, profile.Personal.UserID.ToString(), PartRequest, profile.DBConnection._constr);
            }
            catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, "PartRequestEntry.aspx", "WMUpdRequestPart"); }
            finally { objService.Close(); }
        }