private void ReSetDictIndexList() { _dictIndexList.Clear(); for (int i = 0; i < dataSet.Tables[Text].Rows.Count; i++) { if (string.IsNullOrEmpty(txtPinYing.Text)) { _dictIndexList.Add(i); } else { string itemName = ""; if (dataSet.Tables[Text].Rows[i]["ITEM_NAME"] != System.DBNull.Value) { itemName = dataSet.Tables[Text].Rows[i]["ITEM_NAME"].ToString(); if (!string.IsNullOrEmpty(itemName)) { itemName = StringManage.GetPYString(itemName); } } if (itemName.ToLower().Contains(txtPinYing.Text.ToLower())) { _dictIndexList.Add(i); } } } }
private static void popupMenu_KeyPress(object sender, KeyPressEventArgs e) { ContextMenuStrip popupMenu = sender as ContextMenuStrip; if (popupMenu == null) { return; } int height = popupMenu.Height; if (((int)e.KeyChar) == 32) { if (_filtString.Length > 0) { _filtString = _filtString.Remove(_filtString.Length - 1); } } else { _filtString = _filtString + e.KeyChar; } foreach (ToolStripItem item in popupMenu.Items) { if (StringManage.GetPYString(item.Text).ToLower().Contains(_filtString.ToLower())) { item.Visible = true; } else { item.Visible = false; } } popupMenu.Show(_point); }
public CustomSelectionListItem(int index, string displayText, List <string> rowArray) { _index = index; _displayText = displayText; _inputCode = StringManage.GetPYString(displayText).ToLower(); _rowArray = rowArray; }
public CustomSelectionListItem(int index, string displayText, List <string> rowArray, string inputCode) { _index = index; _displayText = displayText; _inputCode = string.IsNullOrEmpty(inputCode) ? StringManage.GetPYString(displayText).ToLower() : inputCode; _rowArray = rowArray; }
public virtual List <MED_MONITOR_FUNCTION_CODE> GetMonitorFuctionCodeList() { List <MED_MONITOR_FUNCTION_CODE> codeList = dapper.Set <MED_MONITOR_FUNCTION_CODE>().Select(); foreach (var item in codeList) { item.INPUT_CODE = StringManage.GetPYString(item.ITEM_NAME); } return(codeList); }
public virtual List <MED_EVENT_DICT> GetEventDictList() { List <MED_EVENT_DICT> eventDictList = dapper.Set <MED_EVENT_DICT>().Select(); foreach (var item in eventDictList) { item.EventNamePY = StringManage.GetPYString(item.EVENT_ITEM_NAME); } return(eventDictList); }
public IList <MED_PRICE_LIST> GetPriceList(string itemClass) { DapperContext context = new DapperContext("ChargeConnString"); bool flag = string.IsNullOrEmpty(itemClass); List <MED_PRICE_LIST> priceList = context.Set <MED_PRICE_LIST>().Select(d => flag || d.ITEM_CLASS.Contains(itemClass)); foreach (MED_PRICE_LIST row in priceList) { row.INPUT_CODE = StringManage.GetPYString(row.ITEM_NAME); } return(priceList); }
public virtual List <MED_VALUATION_ITEM_LIST> GetValuationItemList() { List <MED_VALUATION_ITEM_LIST> dataList = dapper.Set <MED_VALUATION_ITEM_LIST>().Select(); if (dataList != null) { foreach (MED_VALUATION_ITEM_LIST row in dataList) { row.INPUT_CODE = StringManage.GetPYString(row.ITEM_NAME); } } return(dataList); }
public virtual List <MED_OPERATION_DICT> GetOperationDictList() { List <MED_OPERATION_DICT> dataList = dapper.Set <MED_OPERATION_DICT>().Select(); if (dataList != null && dataList.Count > 0) { foreach (var item in dataList) { if (string.IsNullOrEmpty(item.INPUT_CODE)) { item.INPUT_CODE = StringManage.GetPYString(item.OPER_NAME); } } } return(dataList); }
public virtual List <MED_HIS_USERS> GetHisUsersList(string UserJob) { List <MED_HIS_USERS> dataList = dapper.Set <MED_HIS_USERS>().Select(x => x.USER_JOB == UserJob); if (dataList != null && dataList.Count > 0) { foreach (var item in dataList) { if (string.IsNullOrEmpty(item.INPUT_CODE)) { item.INPUT_CODE = StringManage.GetPYString(item.USER_NAME); } } } return(dataList); }
public virtual List <MED_DIAGNOSIS_DICT> GetDiagnosisDictList() { List <MED_DIAGNOSIS_DICT> dataList = dapper.Set <MED_DIAGNOSIS_DICT>().Select(); if (dataList != null && dataList.Count > 0) { foreach (var item in dataList) { if (string.IsNullOrEmpty(item.INPUT_CODE)) { item.INPUT_CODE = StringManage.GetPYString(item.DIAGNOSIS_NAME); } } } return(dataList); }
public virtual List <MED_BILL_ITEM_CLASS_DICT> GetBillItemClassDictList() { List <MED_BILL_ITEM_CLASS_DICT> dataList = dapper.Set <MED_BILL_ITEM_CLASS_DICT>().Select(); if (dataList != null && dataList.Count > 0) { foreach (var item in dataList) { if (string.IsNullOrEmpty(item.INPUT_CODE)) { item.INPUT_CODE = StringManage.GetPYString(item.BILL_CLASS_NAME); } } } return(dataList); }
public virtual List <MED_ANESTHESIA_DICT> GetAnesthesiaDictList() { List <MED_ANESTHESIA_DICT> dataList = dapper.Set <MED_ANESTHESIA_DICT>().Select(); if (dataList != null && dataList.Count > 0) { foreach (var item in dataList) { if (string.IsNullOrEmpty(item.INPUT_CODE)) { item.INPUT_CODE = StringManage.GetPYString(item.ANAESTHESIA_CODE); } } } return(dataList); }
private static DataTable TransTable(DataTable source, string ddd) { source.Columns.Add("aabbccdd"); source.Columns.Add("globalIndex"); for (int i = 0; i < source.Rows.Count; i++) { DataRow row = source.Rows[i]; if (row[ddd] != System.DBNull.Value && !string.IsNullOrEmpty(row[ddd].ToString())) { row["aabbccdd"] = StringManage.GetPYString(row[ddd].ToString()).ToLower(); } else { row["aabbccdd"] = ""; } row["globalIndex"] = i; } return(source); }
public virtual List <MED_BILL_TEMPLET_MASTER> GetTempletMaster() { List <MED_BILL_TEMPLET_MASTER> dataList = new List <MED_BILL_TEMPLET_MASTER>(); List <MED_ANES_BILL_TEMPLET> templetList = GetBillTempletList(); foreach (MED_ANES_BILL_TEMPLET row in templetList) { MED_BILL_TEMPLET_MASTER bill = dataList.Where(x => x.TEMPLET == row.TEMPLET).FirstOrDefault(); if (bill == null) { bill = new MED_BILL_TEMPLET_MASTER(); bill.TEMPLET = row.TEMPLET; bill.TEMPLET_CLASS = row.TEMPLET_CLASS; bill.INPUT_CODE = StringManage.GetPYString(bill.TEMPLET); dataList.Add(bill); } } return(dataList); }