private int GetIsQuality(T_InStockDetailInfo model) { int iIsQuality = 0; string strError = string.Empty; List <ComboBoxItem> items = new List <ComboBoxItem>(); if (Common_Func.GetComboBoxItem("cbxIsQuality", ref items, ref strError) == false) { iIsQuality = 0; } else { var item = items.Find(t => t.ID == model.VoucherType); if (item != null) { iIsQuality = Convert.ToInt32(item.Name); } } return(iIsQuality); }
private List <ComboBoxItem> GetQualityType() { return(Common_Func.GetComboBoxItem("SELECT ParameterID AS ID,ParameterName AS NAME FROM T_PARAMETER WHERE GROUPNAME = 'QualityType' ORDER BY ParameterID")); }
public bool GetComboBoxItemByKey(string key, ref List <ComboBoxItem> comboxBoxItemList, ref string strError) { return(Common_Func.GetComboBoxItem(key, ref comboxBoxItemList, ref strError)); }
public List <ComboBoxItem> GetComboBoxItem(string strSql) { return(Common_Func.GetComboBoxItem(strSql)); }