public Auditory MapLineHToAuditory(OriginType originType, DocType doctype, LineH lineH) { try { /* fec_doc, nro_doc, tip_doc, est_doc, fec_aud, usr_aud, est_aud, des_fil, est_fil, ORI_DOC */ return(new Auditory() { fec_doc = lineH.invoice_date, nro_doc = IFSKeys.SERIE(doctype) + lineH.invoice_no, tip_doc = lineH.invoice_type, est_doc = 1, fec_aud = System.DateTime.Now, usr_aud = System.Environment.MachineName, est_aud = "", des_fil = "", est_fil = "1", ori_doc = originType.ToString() }); } catch (Exception ex) { this._ILogService.Error(ex.Message); } return(null); }
public static string GetTypeName(OriginType type) { switch (type) { case OriginType.Source: return(StringResources.DisplayFilterControl_Copied_from_source); case OriginType.AutoPropagated: return(StringResources.DisplayFilterControl_Auto_propagated); case OriginType.Exact: return(StringResources.DisplayFilterControl_Exact_matches); case OriginType.Fuzzy: return(StringResources.DisplayFilterControl_Fuzzy_matches); case OriginType.PM: return(StringResources.DisplayFilterControl_Perfect_matches); case OriginType.CM: return(StringResources.DisplayFilterControl_Context_matches); case OriginType.AT: return(StringResources.DisplayFilterControl_Automated_translations); default: return(type.ToString()); } }
public static string GetTypeName(OriginType type) { switch (type) { case OriginType.Source: return(StringResources.DisplayFilterControl_Copied_from_source); case OriginType.AutoPropagated: return(StringResources.DisplayFilterControl_Auto_propagated); case OriginType.Exact: return(StringResources.DisplayFilterControl_Exact_matches); case OriginType.Fuzzy: return(StringResources.DisplayFilterControl_Fuzzy_matches); case OriginType.PM: return(StringResources.DisplayFilterControl_Perfect_matches); case OriginType.CM: return(StringResources.DisplayFilterControl_Context_matches); case OriginType.AT: return(StringResources.DisplayFilterControl_Automated_translations); case OriginType.FuzzyMatchRepair: return(StringResources.DisplayFilterControl_Fuzzy_Match_Repair); case OriginType.EditedFuzzy: return(StringResources.DisplayFilterControl_Edited_Fuzzy); case OriginType.UneditedFuzzy: return(StringResources.DisplayFilterControl_Unedited_Fuzzy); case OriginType.NMT: return(StringResources.DisplayFilterControl_Neural_Machine_Translation); default: return(type.ToString()); } }
private void MouseUp(Window32Msg.MouseOrigin origin, MouseButton arg1, MousePoint arg2) { MouseInputData data = new MouseInputData(); data.Get((int)arg1).Up = true; OriginType type = OriginType.U3D_2D_MOUSE; switch (origin) { case Window32Msg.MouseOrigin.PRO_MOUSE: type = PROIs3DShow ? OriginType.PRO_3D_MOUSE : OriginType.PRO_2D_MOUSE; break; case Window32Msg.MouseOrigin.PRO_TOUCH: type = PROIs3DShow ? OriginType.PRO_3D_TOUCH : OriginType.PRO_2D_TOUCH; break; case Window32Msg.MouseOrigin.U3D_MOUSE: type = U3dIs3DShow ? OriginType.U3D_3D_MOUSE : OriginType.U3D_2D_MOUSE; break; case Window32Msg.MouseOrigin.U3D_TOUCH: type = U3dIs3DShow ? OriginType.U3D_3D_TOUCH : OriginType.U3D_2D_TOUCH; break; } if (m_LogLevel <= Common.LogLevel.DEBUG) { Common.AppLog.AddFormat(Common.LogLevel.DEBUG, "GCInput.MouseUp", $"Button={arg1.ToString()} OriginType={type.ToString()} point={arg2.X} {arg2.Y}"); } m_msgList.Add(new MsgData(type, data, new API.SPoint(arg2.X, arg2.Y))); }