Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 private List <ComboBoxItem> GetQualityType()
 {
     return(Common_Func.GetComboBoxItem("SELECT ParameterID AS ID,ParameterName AS NAME FROM T_PARAMETER WHERE GROUPNAME = 'QualityType' ORDER BY ParameterID"));
 }
Ejemplo n.º 3
0
 public bool GetComboBoxItemByKey(string key, ref List <ComboBoxItem> comboxBoxItemList, ref string strError)
 {
     return(Common_Func.GetComboBoxItem(key, ref comboxBoxItemList, ref strError));
 }
Ejemplo n.º 4
0
 public List <ComboBoxItem> GetComboBoxItem(string strSql)
 {
     return(Common_Func.GetComboBoxItem(strSql));
 }