public CResult GetButtonColor(RMS.Common.ObjectModel.CButtonColor inCat) { CResult oResult = new CResult(); try { this.OpenConnection(); string sSql = string.Format(SqlQueries.GetQuery(Query.GetButtonColor), inCat.ButtonID); IDataReader oReader = this.ExecuteReader(sSql); if (oReader != null) { if (oReader.Read()) { inCat = ReaderToButtonColor(oReader); oResult.Data = inCat; oResult.IsSuccess = true; } } } catch (Exception ex) { Logger.Write("Exception : " + ex + " in ItemGetById()", LogLevel.Error, "Database"); oResult.IsException = true; } finally { this.CloseConnection(); } return oResult; }
public CResult Cat1Delete(RMS.Common.ObjectModel.CCategory1 oCat) { CResult objResult = new CResult(); try { this.OpenConnection(); string sSql = string.Format(SqlQueries.GetQuery(Query.DeleteCategory1), oCat.Category1ID); this.ExecuteNonQuery(sSql); objResult.IsSuccess = true; } catch (Exception ex) { Logger.Write("Exception : " + ex + " in ItemDelete()", LogLevel.Error, "Database"); objResult.Message = ex.Message; objResult.IsException = true; } finally { this.CloseConnection(); } return objResult; }
public CResult AddButtonColor(RMS.Common.ObjectModel.CButtonColor inUser) { CResult oResult = new CResult(); inUser.ButtonName = inUser.ButtonName.Replace("''", "'"); inUser.ButtonName = inUser.ButtonName.Replace("'", "''"); try { this.OpenConnection(); string sSql = String.Format(SqlQueries.GetQuery(Query.AddButtonColor), inUser.ButtonName, inUser.ButtonColor, RMSGlobal.LogInUserName, DateTime.Now.Ticks); this.ExecuteNonQuery(sSql); oResult.IsSuccess = true; } catch (Exception ex) { Logger.Write("Exception : " + ex + " in ItemInsert() in CUserInfoDAO class", LogLevel.Error, "Database"); //throw new Exception("Exception occure at ItemInsert()", ex); } finally { this.CloseConnection(); } return oResult; }
public CResult UpdateButtonColor(RMS.Common.ObjectModel.CButtonColor inUser) { CResult oResult = new CResult(); try { this.OpenConnection(); string sSql = String.Format(SqlQueries.GetQuery(Query.UpdateButtonColor), inUser.ButtonColor, inUser.ButtonID, inUser.CurrentUserId, inUser.LoginDateTime); this.ExecuteNonQuery(sSql); oResult.IsSuccess = true; } catch (Exception ex) { Logger.Write("Exception : " + ex + " in ItemInsert() in CUserInfoDAO class", LogLevel.Error, "Database"); //throw new Exception("Exception occure at ItemInsert()", ex); } finally { this.CloseConnection(); } return oResult; }
public FormDATAENTRY(DELIVERYORDER.FormDAFTARSTT _frm,int Type, RMS.COMMON.DELIVERYORDER.RMS_DETAILINVOICE obj, RMS.COMMON.MASTER.RMS_USER user) { InitializeComponent(); INIT_PERUSAHAAN(); SET_PRINT(); cUser = user; this.frm = _frm; this.Type = Type; setDIM(); if (cUser.isbiayastt) { panelBIAYA.Visible = true; } else { panelBIAYA.Visible = false; } if (Type == 0) { cboINSURANCE.Text = "0"; txtNOCONNOTE.Text = GETKODE(); cboTERMOFPAYMENT.Text = "PREPAID"; } else { c.ID = obj.ID; LOAD_DATA(obj); } }
private void AddMetaData( ImageMetaData metaData, CaptureSequence sequence, DateTime start, RMS rms, string targetName) { metaData.Image.ExposureStart = start; metaData.Image.Binning = sequence.Binning.Name; metaData.Image.ExposureNumber = sequence.ProgressExposureCount; metaData.Image.ExposureTime = sequence.ExposureTime; metaData.Image.ImageType = sequence.ImageType; metaData.Image.RecordedRMS = rms; metaData.Target.Name = targetName; // Fill all available info from profile metaData.FromProfile(profileService.ActiveProfile); metaData.FromTelescopeInfo(telescopeInfo); metaData.FromFilterWheelInfo(filterWheelInfo); metaData.FromRotatorInfo(rotatorInfo); metaData.FromFocuserInfo(focuserInfo); metaData.FromWeatherDataInfo(weatherDataInfo); metaData.FilterWheel.Filter = sequence.FilterType?.Name ?? metaData.FilterWheel.Filter; }
public void GET_DATA_KOTATERUSAN(RMS.COMMON.MASTER.RMS_PRICELIST obj) { txtKODETERUSAN.Text = obj.KODEATERUSAN; txtNAMATERUSAN.Text = obj.NAMATERUSAN; c.IDTERUSAN = obj.IDTERUSAN; }
public RMS.Common.ObjectModel.CResult UpdatePrintStyle(RMS.Common.ObjectModel.CPrintStyle inUser) { CResult oResult = new CResult(); try { this.OpenConnection(); string sSql = String.Format(SqlQueries.GetQuery(Query.UpdatePrintStyle), inUser.Header, inUser.Body, inUser.Footer, inUser.StyleID); this.ExecuteNonQuery(sSql); oResult.IsSuccess = true; } catch (Exception ex) { Logger.Write("Exception : " + ex + " in ItemInsert() in CUserInfoDAO class", LogLevel.Error, "Database"); oResult.IsException = true; //throw new Exception("Exception occure at ItemInsert()", ex); } finally { this.CloseConnection(); } return oResult; }
public void Load() { // //Debug.Log (" ++++++++++++ Load Data +++++++++++++++"); data = RMS.Load(); if (data != null) { MC_Gold = data.MC_Gold; MC_Ruby = data.MC_Ruby; MC_PlaneID = data.MC_PlaneID; MC_BotLeftID = data.MC_BotLeftID; MC_BotRightID = data.MC_BotRightID; List_Planes.Clear(); foreach (int i in data.MC_Planes) { List_Planes.Add(i); } List_Bots.Clear(); foreach (int i in data.MC_Bots) { List_Bots.Add(i); } } }
/// <summary> /// Starts recording RMS until StopRMSRecording is called /// </summary> /// <returns>Handle for the recording rms session</returns> public Guid StartRMSRecording() { var handle = Guid.NewGuid(); var rms = new RMS(); rms.SetScale(GuideStepsHistory.PixelScale); recordedRMS.Add(handle, rms); return(handle); }
public MainForm(RMS.COMMON.MASTER.RMS_USER obj) { InitializeComponent(); //cUser = obj; cUser = obj; LOAD_PC(); // SETTING(); }
public FormVIEWPRICELISTCUSTOMER(DELIVERYORDER.FormDATAENTRY _frm, RMS.COMMON.DELIVERYORDER.RMS_DETAILINVOICE obj) { InitializeComponent(); this.frm = _frm; c.IDCUSTOMER = obj.IDCUSTOMER; c.NAMACUSTOMER = obj.NAMACUSTOMER; lblCUSTOMER.Text = obj.NAMACUSTOMER; LOAD_DATA(); }
public void RMS_DefaultConstructorTest() { RMS rms = new RMS(); Assert.AreEqual(1, rms.Scale); Assert.AreEqual(0, rms.RA); Assert.AreEqual(0, rms.Dec); Assert.AreEqual(0, rms.Total); }
public void GET_DATA_CUSTOMER(RMS.COMMON.MASTER.RMS_CUSTOMER obj) { c.IDCUSTOMER = obj.ID; txtKODECUSTOMER.Text = obj.KODE; txtNAMACUSTOMER.Text = obj.NAMACUSTOMER; txtALAMATPENGIRIM.Text = obj.ALAMAT; txtPHONEPENGIRIM.Text = obj.TELEPON; txtHPPENGIRIM.Text = obj.HP; }
public FormDEPARTMENT(MASTER.FormDEPARTMENT _frm, int Type, RMS.COMMON.MASTER.RMS_DEPARTMENT obj) { this.frm = _frm; this.Type = Type; InitializeComponent(); if (Type == 1) { LOAD_DATA(obj); } }
public string DecodePassword(RMS.COMMON.MASTER.RMS_USER obj) { string decode; using (Database db = new Database()) { decode = db.DecodePassword(obj.password); } return decode; }
public void RMS_AddSingleValue_CalculateCorrect() { RMS rms = new RMS(); rms.AddDataPoint(10, 10); Assert.AreEqual(0, rms.RA); Assert.AreEqual(0, rms.Dec); Assert.AreEqual(0, rms.Total); }
public FormPENERIMA(MASTER.FormPENERIMA _frm, int _Type, RMS.COMMON.MASTER.RMS_PENERIMA obj) { InitializeComponent(); this.frm = _frm; this.Type = _Type; cboTYPE.Text = "RETAIL"; if (Type == 1) { LOAD_DATA(obj); } }
public FormGUDANG(MASTER.FormGUDANG _frm, int Type, RMS.COMMON.MASTER.RMS_GUDANG obj) { InitializeComponent(); this.Type = Type; this.frm = _frm; if (Type == 1) { LOAD_DATA(obj); } }
public FormSALES(MASTER.FormSALES _frm, int Type, RMS.COMMON.MASTER.RMS_SALES obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; if (Type == 1) { LOAD_DATA(obj); } }
public FormMARKETING(MASTER.FormMARKETING _frm, int Type, RMS.COMMON.MASTER.RMS_MARKETING obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; txtKODE.Text = GETKODE(); if (Type == 1) { LOAD_DATA(obj); } }
public void GET_DATA(RMS.COMMON.MASTER.RMS_BARANG obj) { txtBARANG.Text = obj.NAMABARANG; txtKODE.Text = obj.KODEBARANG; txtBARCODE.Text = obj.BARCODE; txtKODESATUAN.Text = obj.KODESATUAN; txtNAMASATUAN.Text = obj.NAMASATUAN; txtKODEDEPT.Text = obj.KODEDEPT; txtNAMADEPT.Text = obj.NAMADEPT; txtQTYBELI1.Text = "0"; txtQTYBELI2.Text = "0"; txtQTYBONUS.Text = "0"; txtTOTALPCS.Text = "0"; txtTOTALPCSBNS.Text = "0"; txtHARGABELI1.Text = "0"; txtHARGABELI2.Text = "0"; txtBRUTO.Text = "0"; txtDSKNRP1.Text = "0"; txtDSKNRP1A.Text = "0"; txtDSKNRP2.Text = "0"; txtDSKNRP2A.Text = "0"; txtDSKNPSN1.Text = "0"; txtDSKNPSN1A.Text = "0"; txtDSKNPSN2.Text = "0"; txtDSKNPSN2A.Text = "0"; txtDSKNPSN3.Text = "0"; txtDSKNPSN3A.Text = "0"; txtDSKNPSN4.Text = "0"; txtDSKNPSN4A.Text = "0"; txtDSKNPSN5.Text = "0"; txtDSKNPSN5A.Text = "0"; txtPPN.Text = "0"; txtPPNA.Text = "0"; txtNETTO.Text = "0"; txtHRGPKKBELI1.Text = "0"; txtHRGPKKBELI2.Text = "0"; txtMGNPROFIT1.Text = "0"; txtMGNPROFIT1A.Text = "0"; txtBTSMGN1.Text = obj.BATASMARGIN1.ToString(); txtBTSMGN2.Text = obj.BATASMARGIN2.ToString(); txtHARGAJUAL1.Text = "0"; txtHARGAJUAL2.Text = "0"; txtMGNSPESIAL.Text = "0"; txtHARGASPESIAL.Text = "0"; txtQTY1.Text = "0"; txtMGN1.Text = "0"; txtHARGA1.Text = "0"; txtQTY2.Text = "0"; txtMGN2.Text = "0"; txtHARGA2.Text = "0"; txtQTY3.Text = "0"; txtMGN3.Text = "0"; txtHARGA3.Text = "0"; txtQTY4.Text = "0"; txtMGN4.Text = "0"; txtHARGA4.Text = "0"; txtQTY5.Text = "0"; txtMGN5.Text = "0"; txtHARGA5.Text = "0"; labelINFO1.Text = obj.NAMASATUAN; labelINFO3.Text = obj.NAMASATUAN; labelINFO4.Text = obj.NAMASATUAN; labelINFO6.Text = obj.NAMASATUAN; }
public FormAREA(MASTER.FormKOTA _frm, int Type, RMS.COMMON.MASTER.RMS_KOTA obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; if (Type == 1) { LOAD_DATA(obj); } }
public FormVIEWAGENT(FINANCE.FormTAGIHAN _frm, RMS.COMMON.MASTER.RMS_SUPPLIER obj, int _type) { InitializeComponent(); type = _type; if (type == 1) { this.frm = _frm; c = obj; } LOAD_DATA(); this.txtCARI.Focus(); }
public FormKENDARAAN(MASTER.FormKENDARAAN _frm, int _Type, RMS.COMMON.MASTER.RMS_KENDARAAN obj) { InitializeComponent(); this.frm = _frm; Type = _Type; loadCOMBO(); if (Type == 1) { LOAD_DATA(obj); } }
public FormPRICELIST(MASTER.FormPRICELIST _frm, int Type, RMS.COMMON.MASTER.RMS_PRICELIST obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; if (Type == 1) { // LOAD_DATA(obj); } loadCOMBO(); }
public FormDRIVERHELPER(MASTER.FormDRIVER _frm, int _Type, RMS.COMMON.MASTER.RMS_DRIVER obj) { InitializeComponent(); this.frm = _frm; this.Type = _Type; txtKODE.Text = GETKODE(); txtKODE.ReadOnly = true; if (Type == 1) { LOAD_DATA(obj); } }
public FormDAFTARSTT(RMS.COMMON.MASTER.RMS_USER obj) { InitializeComponent(); //this.setCOMBO(); cUser = obj; SETTING_MANUAL(); INIT_PERUSAHAAN(); LOAD_DATA(); LOAD_DATAUSER(); myToolTip(); }
public FormSUPPLIER(MASTER.FormSUPPLIER _frm, int Type, RMS.COMMON.MASTER.RMS_SUPPLIER obj) { InitializeComponent(); this.frm = _frm; this.Type = Type; cboHANDLING.Text = "DELIVERY"; txtKODE.Text = GETKODE(); if (Type == 1) { LOAD_DATA(obj); } }
public FormTAGIHAN(FINANCE.FormDAFTARPEMBAYARANHUTANG _frm, int _Type, RMS.COMMON.DELIVERYORDER.RMS_TAGIHAN obj) { InitializeComponent(); this.frm = _frm; this.Type = _Type; //txtKODE.Text = GETKODE(); //txtKODE.ReadOnly = true; if (Type == 1) { LOAD_DATA(obj); } }
public FormCUSTOMER(MASTER.FormCUSTOMER _frm, int _Type, RMS.COMMON.MASTER.RMS_CUSTOMER obj) { InitializeComponent(); this.frm = _frm; this.Type = _Type; txtKODE.Text = GETKODE(); txtKODE.ReadOnly = true; cboTYPE.Text = "RETAIL"; if (Type == 1) { LOAD_DATA(obj); } }
public RMS.Common.ObjectModel.CResult AddCat2(RMS.Common.ObjectModel.CCategory2 inUser) { CResult oResult = new CResult(); try { bool bTempFlag = CheckCat(inUser); if (bTempFlag) { oResult.Message = "Category2 exists with this name."; } else { CResult oResult2 = GetMaxCatOrder(); if (oResult2.IsSuccess && oResult2.Data != null) { int iTempOrder = (int)oResult2.Data; iTempOrder = iTempOrder + 1; inUser.Category2Name = inUser.Category2Name.Replace("''", "'"); inUser.Category2Name = inUser.Category2Name.Replace("'", "''"); this.OpenConnection(); string sSql = String.Format(SqlQueries.GetQuery(Query.AddCategory2), inUser.Category2Name, inUser.Category1ID, iTempOrder, inUser.Category2Type, inUser.Category2Color, inUser.Category2ViewTable, inUser.Category2ViewBar, inUser.Category2ViewTakeAway, RMSGlobal.LogInUserName, DateTime.Now.Ticks); this.ExecuteNonQuery(sSql); oResult.IsSuccess = true; } } } catch (Exception ex) { Logger.Write("Exception : " + ex + " in ItemInsert() in CUserInfoDAO class", LogLevel.Error, "Database"); //throw new Exception("Exception occure at ItemInsert()", ex); } finally { this.CloseConnection(); } return oResult; }
public void RMS_AddMultipleDataPoints2_CalculateCorrect() { RMS rms = new RMS(); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); Assert.AreEqual(300, rms.RA); Assert.AreEqual(630, rms.Dec); var total = Math.Sqrt((Math.Pow(300, 2) + Math.Pow(630, 2))); Assert.AreEqual(total, rms.Total); }
public void GET_DATA_CUSTOMER(RMS.COMMON.MASTER.RMS_CUSTOMER obj) { // STRING DATE TIDAK BOLEH KOSONG int _nourut; startDATE = dtINVOICEDATE.Value.ToString("yyyy-MM-dd"); endDATE = dtEND.Value.ToString("yyyy-MM-dd"); txtKODECUSTOMER.Text = obj.KODE; txtNAMACUSTOMER.Text = obj.NAMACUSTOMER; DataTable dt = b.SELECTNOINVOICE(startDATE,endDATE,txtKODECUSTOMER.Text.Trim()); _nourut = int.Parse(dt.Rows[0][0].ToString()); txtKODEINVOICE.Text = getNewInvoice(_nourut, txtKODECUSTOMER.Text); lblMESSAGE.Text = txtKODEINVOICE.Text; lblMESSAGE.BackColor = Color.Blue; lblDETAILMSG.Text = "SILAHKAN TEKAN CARI UNTUK MENAMBAHKAN PACKING LIST PENGIRIMAN BARANG"; lblDETAILMSG.BackColor = Color.Red; }
public void GET_DATA_KOTA(RMS.COMMON.MASTER.RMS_KOTA obj, string _namaField) { if (_namaField == "ORIGIN") { txtKODEASAL.Text = obj.KODEKOTA; txtASAL.Text = obj.NAMAKOTA; c.IDKOTAASAL = obj.IDKOTA; } else { txtKODETUJUAN.Text = obj.KODEKOTA; txtTUJUAN.Text = obj.NAMAKOTA; c.IDKOTATUJUAN = obj.IDKOTA; } }
public void GET_DATA_DRIVER(RMS.COMMON.MASTER.RMS_DRIVER obj, string _namaField) { if (_namaField == "DRIVER") { c.IDDRIVER = obj.ID; txtKODEDRIVER.Text = obj.KODE; txtNAMADRIVER.Text = obj.NAMA; } else { c.IDCODRIVER = obj.ID; txtKODEHELPER.Text = obj.KODE; txtNAMAHELPER.Text = obj.NAMA; } }
public void RMS_AddValuesAndClear_AllResetExceptScale() { RMS rms = new RMS(); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); var scale = 1.59; rms.SetScale(scale); rms.Clear(); Assert.AreEqual(scale, rms.Scale); Assert.AreEqual(0, rms.RA); Assert.AreEqual(0, rms.Dec); Assert.AreEqual(0, rms.Total); }
public void RMS_AddValuesClearAndAddOneAgain_ValuesAppliedCorrectly() { RMS rms = new RMS(); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); var scale = 1.59; rms.SetScale(scale); rms.Clear(); rms.AddDataPoint(-25, -36); Assert.AreEqual(scale, rms.Scale); Assert.AreEqual(0, rms.RA); Assert.AreEqual(0, rms.Dec); Assert.AreEqual(0, rms.Total); }
public void Save() { // //Debug.Log (" ++++++++++++ Save Data +++++++++++++++"); data.MC_Gold = MC_Gold; data.MC_Ruby = MC_Ruby; data.MC_PlaneID = MC_PlaneID; data.MC_BotLeftID = MC_BotLeftID; data.MC_BotRightID = MC_BotRightID; data.MC_Planes.Clear(); foreach (int i in List_Planes) { data.MC_Planes.Add(i); } data.MC_Bots.Clear(); foreach (int i in List_Bots) { data.MC_Bots.Add(i); } RMS.Save(data); }
public UsersController(RMS context) { _context = context; }
public FilesController(RMS context) { _context = context; }
public TagsController(RMS context) { _context = context; }
public DevController(RMS context) { _context = context; }