using DataEntity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XImagingXhandler.XDAL { /// /// ºÄ²ÄʵÌåÀà /// public class Labware : IEntity { /// /// ºÄ²ÄId /// public string labware_id { get; set; } = ""; /// /// ºÄ²ÄÃû³Æ /// public string labware_name { get; set; } /// /// ºÄ²ÄÔÚÌ¨ÃæÉϵÄÃû³Æ /// public string labware_sname { get; set; } /// /// ºÄ²ÄµÄbarcode /// public string labware_barcode { get; set; } = ""; /// /// ÖÆÔìÉÌ /// public string brand { get; set; } /// /// »õÎï±àºÅ /// public string number { get; set; } /// /// ºÄ²ÄÀàÐÍ£¬1:°å²Ä£»2£ºÎüÍ·ºÐ£»3.ÊÔ¼Á²Û£»4.¹Ü¼ÜºÐ /// public string labware_type { get; set; } /// /// ºÄ²ÄÀàÐÍId: 1:¿×°å, 2:ǹͷ, 3:ÊÔ¼Á²Û, 4:¹Ü¼Ü, 5:Ô²ÐÎÃó, 6:ÎüÍ·ºÐ, 7:¸Ç×Ó, 8:Ô²ÐÎÃó¸Ç×Ó (ConsumableType) /// public string labware_type_id { get; set; } /// /// ¿×ÊýÁ¿ÀàÐÍId /// public string labware_well_id { get; set; } = "0"; /// /// ºÄ²Ä˵Ã÷±¸×¢ /// public string content { get; set; } = ""; /// /// Î÷±±ÊÇ·ñȱ½Ç£¬1:ȱ½Ç£»0£º²»È±½Ç /// public int? nw { get; set; } = 0; /// /// Î÷ÄÏÊÇ·ñȱ½Ç£¬1:ȱ½Ç£»0£º²»È±½Ç /// public int? sw { get; set; } = 0; /// /// ¶«±±ÊÇ·ñȱ½Ç£¬1:ȱ½Ç£»0£º²»È±½Ç /// public int? ne { get; set; } = 0; /// /// ¶«ÄÏÊÇ·ñȱ½Ç£¬1:ȱ½Ç£»0£º²»È±½Ç /// public int? se { get; set; } = 0; /// /// ºÄ²Ä×ÜÐÐÊý /// public int? number_row { get; set; } = 0; /// /// ºÄ²Ä×ÜÁÐÊý /// public int? number_column { get; set; } = 0; /// /// ºÄ²Ä³¤±ßµÄ³¤¶È£¬µ¥Î»£ººÁÃ× /// public double? labware_length { get; set; } = 0; /// /// ºÄ²Ä¶Ì±ßµÄ³¤¶È£¬µ¥Î»£ººÁÃ× /// public double? labware_width { get; set; } = 0; /// /// ºÄ²ÄµÄ¸ß¶È£¬µ¥Î»£ººÁÃ× /// public double? labware_height { get; set; } = 0; /// /// A1¿×ÖÐÐľà¶Ì±ßµÄ¾àÀ룬µ¥Î»£ººÁÃ× /// public double? a1_distance_x { get; set; } = 0; /// /// A1¿×ÖÐÐľ೤±ßµÄ¾àÀ룬µ¥Î»£ººÁÃ× /// public double? a1_distance_y { get; set; } = 0; /// /// ×óÓÒÏàÁÚÁ½¿×Ö®¼äµÄ¾àÀ룬µ¥Î»£ººÁÃ× /// public double? a1_a2_distance { get; set; } = 0; /// /// ÉÏÏÂÏàÁÚÁ½¿×Ö®¼äµÄ¾àÀ룬µ¥Î»£ººÁÃ× /// public double? a1_b1_distance { get; set; } = 0; /// /// ¿××î´óÌå»ý£¬µ¥Î»£ºÎ¢Éý£¨¦Ìl£© /// public double? well_maximum_volume { get; set; } = 0; /// /// ¿×¿ÉÓÃÌå»ý£¬µ¥Î»£ºÎ¢Éý£¨¦Ìl£© /// public double? well_available_volume { get; set; } = 0; /// /// ÿ¿×»ìºÏµÄµãλÐÅÏ¢Êý¾Ý¼¯ºÏ£¬·ÖºÅ·Ö¸î£»Èç90,1;0,1 /// public string well_mix_points { get; set; } = ""; /// /// ¿×Éî¶È£¬µ¥Î»£ººÁÃ× /// public double? well_depth { get; set; } = 0; /// /// ¿×¶´ÐÎ×´£¬1:Ô²ÖùÌ壻2£ºÁ¢·½Ìå /// public int? well_shape { get; set; } = 0; /// /// µ±ÐÎ״ΪԲÖùÌåʱ£¬¿×¿ÚÓа뾶ֵ£¬µ¥Î»ºÁÃ× /// public double? well_mouth_radius { get; set; } = 0; /// /// µ±ÐÎ״ΪԲÖùÌåʱ£¬¿×±Ûµ×²¿¿ÚÓа뾶ֵ£¬µ¥Î»ºÁÃ× /// public double? well_bottom_randius { get; set; } = 0; /// /// ¿×±Ú¸ß¶È£¬µ±ÐÎ״ΪԲÖùÌåʱ£¬¿×±ÛµÄ¸ß¶ÈÖµ£¬µ¥Î»ºÁÃ× /// public double? well_height { get; set; } = 0; /// /// ¿×¶¥²¿ÉÏÃæºáÏò¿í¶ÈÖµ£¬µ¥Î»ºÁÃ× /// public double? well_top_x { get; set; } = 0; /// /// ¿×¶¥²¿ÉÏÃæ×ÝÏò¿í¶ÈÖµ£¬µ¥Î»ºÁÃ× /// public double? well_top_y { get; set; } = 0; /// /// ¿×¶¥²¿ÏÂÃæºáÏò¿í¶ÈÖµ£¬µ¥Î»ºÁÃ× /// public double? well_down_x { get; set; } = 0; /// /// ¿×¶¥²¿ÏÂÃæ×ÝÏò¿í¶ÈÖµ£¬µ¥Î»ºÁÃ× /// public double? well_down_y { get; set; } = 0; /// /// ¿×µ×²¿ÐÎ×´£¬1.×¶ÐΣ»2.Ô²ÐΣ»3£ºÆ½µ× /// public int? well_bottom_shape { get; set; } = 0; /// /// µ±¿×µ×²¿ÐÎ״Ϊ׶ÐΣ¬Ô²ÐÎʱ£¬µ×²¿Óи߶ÈÖµÎÞ¿í¶È³¤¶ÈÖµ£¬µ¥Î»ºÁÃ× /// public double? well_bottom_height { get; set; } = 0; /// /// µ±¿×µ×²¿ÐÎ״Ϊƽµ×ʱ£¬µ×²¿Óи߶ÈÖµ£¬µ¥Î»ºÁÃ× /// public double? well_bottom_width { get; set; } = 0; /// /// µ±¿×µ×²¿ÐÎ״Ϊƽµ×ʱ£¬µ×²¿Óпí¶ÈÖµ£¬µ¥Î»ºÁÃ× /// public double? well_bottom_length { get; set; } = 0; /// /// ÊÇ·ñ¿ÉÒÆ¶¯£¬1:¿ÉÒÆ¶¯£»0£º²»¿ÉÒÆ¶¯ /// public int? is_moved { get; set; } = 0; /// /// ×¥ÊÖxÖá×ø±êÆ«ÒÆÖµ,µ¥Î»ºÁÃ× /// public double? gripper_x_offset { get; set; } = 0; /// /// ×¥ÊÖyÖá×ø±êÆ«ÒÆÖµ,µ¥Î»ºÁÃ× /// public double? gripper_y_offset { get; set; } = 0; /// /// ×¥ÊÖzÖá×ø±êÆ«ÒÆÖµ,µ¥Î»ºÁÃ× /// public double? gripper_z_offset { get; set; } = 0; /// /// ×¥ÊÖÏòÄڼнôµÄ¾àÀ룬µ¥Î»ºÁÃ× /// public double? gripper_squeeze { get; set; } = 0; /// /// ×¥ÊÖÏòÄڼнôµÄÁ¦°Ù·Ö±È /// public double gripper_power { get; set; } = 0; /// /// ×¥ÊÖÏòÍâÕÅ¿ªµÄ¾àÀ룬µ¥Î»ºÁÃ× /// public double? gripper_spread { get; set; } = 0; /// /// ×¥°åµÄËÙ¶È£¬µ¥Î»°Ù·Ö±È /// public double? gripper_speed { get; set; } = 100; /// /// ×¥ÊÖÐýתµÄ½Ç¶È,µ¥Î»¶È /// public double? gripper_rotational { get; set; } = 0; /// /// ÊÇ·ñÓиÇ×Ó£¬1:ÓиÇ×Ó£»0£ºÎÞ¸Ç×Ó /// public int? is_with_lid { get; set; } = 0; /// /// ¸Ç×ӵĺñ¶È£¬µ¥Î»ºÁÃ× /// public double? with_lid_height { get; set; } = 0; /// /// ¼Ó¸Çºóµþ·ÅµÄ¸ß¶È£¬µ¥Î»ºÁÃ× /// public double? with_lid_pile_height { get; set; } = 0; /// /// È¡¸Ç£¬¸ÕºÃÀ뿪ʱµÄ×ܸ߶ȣ¬µ¥Î»ºÁÃ× /// public double? total_without_lid_height { get; set; } = 0; /// /// ·ÅÖøÇ×ÓʱµÄ×ܸ߶ȣ¬µ¥Î»ºÁÃ× /// public double? total_with_lid_height { get; set; } = 0; /// /// ×¥ÊÖÆ«ÒÆÁ¿,µ¥Î»ºÁÃ× /// public double? gripper_lid_offset { get; set; } = 0; /// /// µþ·ÅËÙ¶È,µ¥Î»°Ù·Ö±È /// public double? piled_speed { get; set; } = 0; /// /// ÊÇ·ñ¿Éµþ·Å£¬1:¿ÉÒÔµþ·Å£»0£º²»¿Éµþ·Å /// public int? is_piling { get; set; } = 0; /// /// ÊÇ·ñÄܱ»ÆäËûµþ·ÅÆäÉÏ£¬1:Äܱ»µþ·Å£»0£º²»Äܱ»µþ·Å /// public int? is_piled { get; set; } = 0; /// /// ±»ÆäËûµþ·ÅµÄÆäÉÏµÄºÄ²ÄÆ«ÒÆ×ø±ê£¬ÓÃjsonÊý×é±íʾ£¬È磺{list:[{labwereid:111,x:10,y:10,z:10},{labwereid:112,x:10,y:10,z:10}]} /// public string piled_script { get; set; } = ""; /// /// ÊÇ·ñÄܵþ·Åµ½ÆäËûÉÏ£¬1£ºÄÜ£»0£º·ñ /// public int is_pilingon { get; set; } = 0; /// /// ±»µþ·Åµ½µÄÆäËûºÄ²ÄÉÏÊ±Æ«ÒÆ×ø±ê£¬ÓÃjsonÊý×é±íʾ£¬È磺{list:[{labwereid:111},{labwereid:112}]} /// public string pilingon_script { get; set; } = ""; /// /// µþ·ÅºóµÄƫת¾àÀëx /// public double piled_x { get; set; } = 0; /// /// µþ·ÅºóµÄƫת¾àÀëy /// public double piled_y { get; set; } = 0; /// /// µþ·ÅµÄºóµÄµ¥²ã¸ß¶È£¬µ¥Î»ºÁÃ× /// public double? piled_height { get; set; } = 0; /// /// ÊÇ·ñ¿ÉÃܷ⣬1:¿ÉÒÔÃܷ⣻0£º²»¿ÉÃÜ·â /// public int? is_seal { get; set; } = 0; /// /// ÃÜ·âºóµÄ¸ß¶È£¬µ¥Î»ºÁÃ× /// public double? sealed_height { get; set; } = 0; /// /// ÃÜ·â²¢µþ·ÅµÄµ¥²ã¸ß¶È£¬µ¥Î»ºÁÃ× /// public double? sealed_piled_height { get; set; } = 0; /// /// ǹͷÃû³Æ /// public string tip_name { get; set; } = ""; /// /// ǹͷ×î´óÈÝÁ¿£¬µ¥Î»£ºÎ¢Éý£¨¦Ìl£© /// public double? tip_volume_max { get; set; } = 0; /// /// ǹͷ¿ÉÓÃ×î´óÌå»ýÁ¿£¬µ¥Î»£ºÎ¢Éý£¨¦Ìl£© /// public double? tip_use_volume_max { get; set; } = 0; /// /// ǹͷ¿ÕÆøÈÝ»ý£¨ul) /// public double tip_air_volume { get; set; } = 0; /// /// ǹͷ×ܳ¤¶ÈÖµ,µ¥Î»ºÁÃ× /// public double? tip_length { get; set; } = 0; /// /// ǹͷͷ²¿¸ß¶ÈÖµ,µ¥Î»ºÁÃ× /// public double? tip_header_height { get; set; } = 0; /// /// Ô²×¶µÄ¸ß¶ÈÖµ,µ¥Î»ºÁÃ× /// public double? tip_cone_height { get; set; } = 0; /// /// Ô²×¶²¿·Ö×î´ó°ë¾¶£¬µ¥Î»£ººÁÃ× /// public double? tip_cone_radius_max { get; set; } = 0; /// /// Ô²×¶²¿·Ö×îС°ë¾¶£¬µ¥Î»£ººÁÃ× /// public double? tip_cone_radius_min { get; set; } = 0; /// /// ÏÂѹʱµÄÁ¦¾Ø°Ù·Ö±È£¬ÓÃÓÚÉϺ£ /// public double press_tip_power { get; set; } = 0; /// /// ÔúǹͷÏÂѹÉî¶È£¬µ¥Î»£ººÁÃ× /// public double? press_tip_depth { get; set; } = 0; /// /// ÔúǹͷÔúÈëµÄʵ¼ÊÉî¶È£¬µ¥Î»£ººÁÃ× /// public double press_tipinto_depth { get; set; } = 0; /// /// ÍËǹͷ´ÎÊý /// public int? quit_tip { get; set; } = 1; /// /// ÊÇ·ñ´ø¹ýÂËÂËо /// public int? is_filter { get; set; } = 0; /// /// ÊÇ·ñ´øµ¼µçÐÔ /// public int? is_lls { get; set; } = 0; /// /// ¿É·ÅÖõÄǹͷId /// public string tip_loaded_type { get; set; } = ""; /// /// Êý¾ÝÌõĿ״̬£º1£º¿ÉÓã»0£ºÉ¾³ý /// public int? labware_status { get; set; } = 1; /// /// ͼ±êÃû³Æ,¹Ì¶¨Â·¾¶ÏµÄͼƬÎļþÃû³Æ£¬´øºó׺ /// public string labware_picture { get; set; } = ""; #region ºÄ²Äͼ±ê×ó²àÃæÑÕÉ« /// /// ºÄ²Äͼ±ê×ó²àÃæÑÕÉ«£¬²Ù×÷ϵͳ¹Ì¶¨ÑÕÉ«Ãû³ÆÎı¾ /// private string _labware_color_lside = "144,238,144"; // LightGreen public string labware_color_lside { get { return _labware_color_lside; } set { _labware_color_lside = value; OnPropertyChanged(nameof(labware_color_lside)); } } #endregion #region ºÄ²Äͼ±êÇ°Ð±ÃæÑÕÉ« /// /// ºÄ²Äͼ±êÇ°Ð±ÃæÑÕÉ«£¬²Ù×÷ϵͳ¹Ì¶¨ÑÕÉ«Ãû³ÆÎı¾ /// private string _labware_color_front = "144,238,144"; // LightGreen public string labware_color_front { get { return _labware_color_front; } set { _labware_color_front = value; OnPropertyChanged(nameof(labware_color_front)); } } #endregion #region ºÄ²Äͼ±êÕýÉÏÃæÑÕÉ« /// /// ºÄ²Äͼ±êÕýÉÏÃæÑÕÉ«£¬²Ù×÷ϵͳ¹Ì¶¨ÑÕÉ«Ãû³ÆÎı¾, (ÓÃÓÚ±£´æÔ²ÐÎÃóµÄÑÕÉ«) /// private string _labware_color_top = "144,238,144"; // LightGreen public string labware_color_top { get { return _labware_color_top; } set { _labware_color_top = value; OnPropertyChanged(nameof(labware_color_top)); } } #endregion #region ºÄ²Äͼ±ê¿×λÑÕÉ« /// /// ºÄ²Äͼ±ê¿×λÑÕÉ«£¬²Ù×÷ϵͳ¹Ì¶¨ÑÕÉ«Ãû³ÆÎı¾ /// public string labware_color_well { get; set; } = "144,238,144"; // LightGreen #endregion #region ºÄ²Äͼ±ê±ßÏßÑÕÉ« /// /// ºÄ²Äͼ±ê±ßÏßÑÕÉ«£¬²Ù×÷ϵͳ¹Ì¶¨ÑÕÉ«Ãû³ÆÎı¾ /// private string _labware_color_line = "128,128,128"; // Gray public string labware_color_line { get { return _labware_color_line; } set { _labware_color_line = value; OnPropertyChanged(nameof(labware_color_line)); } } #endregion /// /// ÊÇ·ñÊÇĬÈÏÀàÐÍ£º1£º ĬÈÏ£»0£º×Ô¶¨Òå /// public int? is_default_type { get; set; } = 0; /// /// Êý¾ÝÐиüÐÂʱ¼ä /// public DateTime? timestamp { get; set; } = System.DateTime.Now; /// /// Ô²ÐÎÃóºÄ²Ä·Ö³É¸ñ×ÓµÄ×ÜÊý /// public int labware_round_division { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²ÄÖ±¾¶£¬µ¥Î»ºÁÃ× /// public double labware_round_diameter { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²Ä¸ß¶È£¬µ¥Î»ºÁÃ× /// public double labware_round_height { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²Äµ×²¿ÄÚ²¿Ö±¾¶£¬µ¥Î»ºÁÃ× /// public double labware_round_bottom_indiameter { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²Äµ×²¿Íⲿֱ¾¶£¬µ¥Î»ºÁÃ× /// public double labware_round_bottom_outdiameter { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²Äµ×²¿ÄÚ²¿¸ß¶È£¬µ¥Î»ºÁÃ× /// public double labware_round_bottom_inheight { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²Äµ×²¿Íⲿ¸ß¶È£¬µ¥Î»ºÁÃ× /// public double labware_round_bottom_outheight { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²Ä¸Ç×ÓÄÚ²¿Ö±¾¶£¬µ¥Î»ºÁÃ× /// public double labware_round_lid_indiameter { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²Ä¸Ç×ÓÍⲿֱ¾¶£¬µ¥Î»ºÁÃ× /// public double labware_round_lid_outdiameter { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²Ä¸Ç×ÓÍⲿ¸ß¶È£¬µ¥Î»ºÁÃ× /// public double labware_round_lid_height { get; set; } = 0; /// /// Ô²ÐÎÃóºÄ²Ä×ܸ߶ȣ¬µ¥Î»ºÁÃ× /// public double labware_round_totalheight { get; set; } = 0; /// /// Ô²ÐÎÃóÉÏÄÚÖ±¾¶ /// public double labware_round_top_indiameter { get; set; } = 0; /// /// Ô²ÐÎÃóÉÏÍâÖ±¾¶ /// public double labware_round_top_outdiameter { get; set; } = 0; /// /// µþ·Åƫתx /// public string x { get; set; } = "0.0"; /// /// µþ·Åƫתy /// public string y { get; set; } = "0.0"; /// /// µþ·Åƫתz /// public string z { get; set; } = "0.0"; public object Clone() { return (object)this.MemberwiseClone(); } public void Copy(Labware labware) { labware_id = labware.labware_id; labware_name = labware.labware_name; labware_barcode = labware.labware_barcode; brand = labware.brand; number = labware.number; labware_type = labware.labware_type; labware_type_id = labware.labware_type_id; labware_well_id = labware.labware_well_id; content = labware.content; nw = labware.nw; sw = labware.sw; ne = labware.ne; se = labware.se; number_row = labware.number_row; number_column = labware.number_column; labware_length = labware.labware_length; labware_width = labware.labware_width; labware_height = labware.labware_height; a1_distance_x = labware.a1_distance_x; a1_distance_y = labware.a1_distance_y; a1_a2_distance = labware.a1_a2_distance; a1_b1_distance = labware.a1_b1_distance; well_maximum_volume = labware.well_maximum_volume; well_available_volume = labware.well_available_volume; well_mix_points = labware.well_mix_points; well_depth = labware.well_depth; well_shape = labware.well_shape; well_mouth_radius = labware.well_mouth_radius; well_bottom_randius = labware.well_bottom_randius; well_height = labware.well_height; well_top_x = labware.well_top_x; well_top_y = labware.well_top_y; well_down_x = labware.well_down_x; well_down_y = labware.well_down_y; well_bottom_shape = labware.well_bottom_shape; well_bottom_height = labware.well_bottom_height; well_bottom_width = labware.well_bottom_width; well_bottom_length = labware.well_bottom_length; is_moved = labware.is_moved; gripper_x_offset = labware.gripper_x_offset; gripper_y_offset = labware.gripper_y_offset; gripper_z_offset = labware.gripper_z_offset; gripper_squeeze = labware.gripper_squeeze; gripper_power = labware.gripper_power; gripper_spread = labware.gripper_spread; gripper_speed = labware.gripper_speed; gripper_rotational = labware.gripper_rotational; is_with_lid = labware.is_with_lid; with_lid_height = labware.with_lid_height; with_lid_pile_height = labware.with_lid_pile_height; total_without_lid_height = labware.total_without_lid_height; total_with_lid_height = labware.total_with_lid_height; gripper_lid_offset = labware.gripper_lid_offset; is_piling = labware.is_piling; is_piled = labware.is_piled; piled_script = labware.piled_script; piled_height = labware.piled_height; piled_speed = labware.piled_speed; is_pilingon = labware.is_pilingon; pilingon_script = labware.pilingon_script; piled_x = labware.piled_x; piled_y = labware.piled_y; is_seal = labware.is_seal; sealed_height = labware.sealed_height; sealed_piled_height = labware.sealed_piled_height; tip_name = labware.tip_name; tip_volume_max = labware.tip_volume_max; tip_use_volume_max = labware.tip_use_volume_max; tip_air_volume = labware.tip_air_volume; tip_length = labware.tip_length; tip_header_height = labware.tip_header_height; tip_cone_height = labware.tip_cone_height; tip_cone_radius_max = labware.tip_cone_radius_max; tip_cone_radius_min = labware.tip_cone_radius_min; press_tip_power = labware.press_tip_power; press_tip_depth = labware.press_tip_depth; press_tipinto_depth = labware.press_tipinto_depth; quit_tip = labware.quit_tip; is_filter = labware.is_filter; is_lls = labware.is_lls; tip_loaded_type = labware.tip_loaded_type; labware_status = labware.labware_status; labware_picture = labware.labware_picture; labware_color_lside = labware.labware_color_lside; labware_color_front = labware.labware_color_front; labware_color_top = labware.labware_color_top; labware_color_well = labware.labware_color_well; labware_color_line = labware.labware_color_line; is_default_type = labware.is_default_type; timestamp = labware.timestamp; labware_round_division = labware.labware_round_division; labware_round_diameter = labware.labware_round_diameter; labware_round_height = labware.labware_round_height; labware_round_bottom_indiameter = labware.labware_round_bottom_indiameter; labware_round_bottom_outdiameter = labware.labware_round_bottom_outdiameter; labware_round_bottom_inheight = labware.labware_round_bottom_inheight; labware_round_bottom_outheight = labware.labware_round_bottom_outheight; labware_round_lid_indiameter = labware.labware_round_lid_indiameter; labware_round_lid_outdiameter = labware.labware_round_lid_outdiameter; labware_round_lid_height = labware.labware_round_lid_height; labware_round_totalheight = labware.labware_round_totalheight; labware_round_top_indiameter = labware.labware_round_top_indiameter; labware_round_top_outdiameter = labware.labware_round_top_outdiameter; } } }