public static void UpdateBuildType(int id, int type) { StoredProc storedProc = new StoredProc("upUpdateBuildTypeBlockType"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", id.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Type", type.ToString())); storedProc.Execute(); }
public static void DeleteParameter(int paramId) { StoredProc storedProc = new StoredProc("upDeleteParameter"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", paramId.ToString())); storedProc.Execute(); }
public static void UpdateBuildType(int id, string name, string ver, int padTo, bool frameCount, int blockType) { string pValue = "0"; if (frameCount) { pValue = "1"; } StoredProc storedProc = new StoredProc("upUpdateBuildType"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", id.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Name", name)); storedProc.StoredProcParams.Add(new StoredProcParam("@Version", ver.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@PadTo", padTo.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@FrameCount", pValue)); storedProc.StoredProcParams.Add(new StoredProcParam("@BlockType", blockType.ToString())); storedProc.Execute(); }
public static void UpdateBuildType(int id, string ver) { StoredProc storedProc = new StoredProc("upUpdateBuildTypeVersion"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", id.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Version", ver)); storedProc.Execute(); }
public static void DeleteVehicleInst(int id) { StoredProc storedProc = new StoredProc("upDeleteVehicleInstance"); storedProc.StoredProcParams.Add(new StoredProcParam("@VehicleInstID", id.ToString())); storedProc.Execute(); }
public static void UpdateAllParamInsts(string vehicleId, string paramId, string paramValue, int status, string user, string reason) { StoredProc storedProc = new StoredProc("upUpdateAllParamInsts"); storedProc.StoredProcParams.Add(new StoredProcParam("@VehicleBuildID", vehicleId)); storedProc.StoredProcParams.Add(new StoredProcParam("@ParamID", paramId)); storedProc.StoredProcParams.Add(new StoredProcParam("@Value", paramValue)); storedProc.StoredProcParams.Add(new StoredProcParam("@Status", status.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@User", user)); storedProc.StoredProcParams.Add(new StoredProcParam("@Reason", reason)); storedProc.Execute(); }
public static void UpdateOption(int optionId, int order, int optionGroup) { StoredProc storedProc = new StoredProc("upUpdateOptionDataOrder"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", optionId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Order", order.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@OptionGroup", optionGroup.ToString())); storedProc.Execute(); }
public static void DeleteFrameOrder(int rulesetId) { StoredProc storedProc = new StoredProc("upDeleteFrameOrderByRulesetID"); storedProc.StoredProcParams.Add(new StoredProcParam("@RulesetID", rulesetId.ToString())); storedProc.Execute(); }
public static void UpdateVehicle(int vehicleId, int vdfVersion, string userId) { StoredProc storedProc = new StoredProc("upUpdateVehicleVDF"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", vehicleId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@UserID", userId)); storedProc.StoredProcParams.Add(new StoredProcParam("@VDFVersion", vdfVersion.ToString())); storedProc.Execute(); }
public static void UpdateOption(int optionId, int optionVal, int bitLength, string mask) { StoredProc storedProc = new StoredProc("upUpdateOptionData"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", optionId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@OptionVal", optionVal.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@BitLength", bitLength.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Mask", mask)); storedProc.Execute(); }
public static void UpdateVehicle(int vehicleId, int model, double year, string build, bool freeze, string userId, int vbfType, int vdfVersion, bool xclSDS, string sdsHTemplate, int rulesetId) { string pValue = "0"; if (freeze) { pValue = "1"; } string pValue2 = "0"; if (xclSDS) { pValue2 = "1"; } StoredProc storedProc = new StoredProc("upUpdateVehicle"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", vehicleId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Model", model.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Year", year.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Build", build)); storedProc.StoredProcParams.Add(new StoredProcParam("@Freeze", pValue)); storedProc.StoredProcParams.Add(new StoredProcParam("@UserID", userId)); storedProc.StoredProcParams.Add(new StoredProcParam("@VBFType", vbfType.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@VDFVersion", vdfVersion.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@XCLSDS", pValue2)); storedProc.StoredProcParams.Add(new StoredProcParam("@SDSHeaderTemplate", sdsHTemplate.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@RulesetID", rulesetId.ToString())); storedProc.Execute(); }
public static void UpdateVehicleInst(string vehicleInstId, int status, string user) { StoredProc storedProc = new StoredProc("upUpdateVehicleInstApproval"); storedProc.StoredProcParams.Add(new StoredProcParam("@VehicleInstID", vehicleInstId)); storedProc.StoredProcParams.Add(new StoredProcParam("@Status", status.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@User", user)); storedProc.Execute(); }
public static void UpdateVehicleInst(string vehicleInstId, string name, string comments, int status, string user) { StoredProc storedProc = new StoredProc("upUpdateVehicleInst"); storedProc.StoredProcParams.Add(new StoredProcParam("@VehicleInstID", vehicleInstId)); if (name != "") { storedProc.StoredProcParams.Add(new StoredProcParam("@InstName", name)); } storedProc.StoredProcParams.Add(new StoredProcParam("@Comments", comments)); storedProc.StoredProcParams.Add(new StoredProcParam("@Status", status.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@User", user)); storedProc.Execute(); }
public static void UpdateParameter(int id, string desc, int frameId, int groupId, string user) { StoredProc storedProc = new StoredProc("upUpdateParameterOnImport"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", id.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Description", desc)); storedProc.StoredProcParams.Add(new StoredProcParam("@FrameID", frameId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@GroupID", groupId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@User", user.ToString())); storedProc.Execute(); }
public static void RemoveBuildTypeFromVehicle(int vehicleId, int buildTypeId, string user) { StoredProc storedProc = new StoredProc("upRemoveBuildTypeFromVehicle"); storedProc.StoredProcParams.Add(new StoredProcParam("@VehicleID", vehicleId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@BuildTypeID", buildTypeId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@User", user.ToString())); storedProc.Execute(); }
public static void UpdateRuleset(int id, string name, string version, string user) { StoredProc storedProc = new StoredProc("upUpdateRuleset"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", id.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Name", name)); storedProc.StoredProcParams.Add(new StoredProcParam("@Version", version)); storedProc.StoredProcParams.Add(new StoredProcParam("@User", user)); storedProc.Execute(); }
public static void ChangeBuildTypeOrder(int vehicleId, int buildTypeId, Constants.Movement move, string user) { StoredProc storedProc = new StoredProc("upChangeBuildTypeOrder"); storedProc.StoredProcParams.Add(new StoredProcParam("@VehicleID", vehicleId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@BuildTypeID", buildTypeId.ToString())); ArrayList arg_5E_0 = storedProc.StoredProcParams; string arg_59_0 = "@Movement"; int num = (int)move; arg_5E_0.Add(new StoredProcParam(arg_59_0, num.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@User", user.ToString())); storedProc.Execute(); }
public static void UpdateModel(int id, string vehicle) { StoredProc storedProc = new StoredProc("upUpdateVehicleCode"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", id.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Vehicle", vehicle)); storedProc.Execute(); }
public static void UpdateUser(int id, string user, bool admin, bool super) { string text = "0"; string text2 = "0"; if (admin) { text = "1"; } if (super) { text2 = "1"; } StoredProc storedProc = new StoredProc("upUpdateUser"); storedProc.StoredProcParams.Add(new StoredProcParam("@ID", id.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Username", user.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Admin", text.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@Super", text2.ToString())); storedProc.Execute(); }
public static void DeleteVehicleInst(Constants.VehicleCriteria vehicle) { StoredProc storedProc = new StoredProc("upDeleteVehicleInstByVehicle"); storedProc.StoredProcParams.Add(new StoredProcParam("@VehicleBuildID", vehicle.ID.ToString())); storedProc.Execute(); }
public static void AddExtractData(int vehicleInstId, string user, int extractType) { StoredProc storedProc = new StoredProc("upAddExtractData"); storedProc.StoredProcParams.Add(new StoredProcParam("@VehicleInstID", vehicleInstId.ToString())); storedProc.StoredProcParams.Add(new StoredProcParam("@User", user)); storedProc.StoredProcParams.Add(new StoredProcParam("@Type", extractType.ToString())); storedProc.Execute(); }