Example #1
0
        public ProdutionWeightStd GetStandard(string spec, string length)
        {
            ProdutionWeightStd pws = null;

            DataRow[] drs = _dt.Select("FS_SPEC ='" + spec + "' and FN_LENGTH = '" + length + "'");
            if (drs.Length > 0)
            {
                try
                {
                    DataRow dr = drs[0];
                    pws           = new ProdutionWeightStd();
                    pws.SeqNo     = int.Parse(dr["FN_ID"].ToString());
                    pws.Spec      = double.Parse(dr["FS_SPEC"].ToString());
                    pws.Lenght    = double.Parse(dr["FN_LENGTH"].ToString());
                    pws.MinWeight = double.Parse(dr["FS_BUNDLEMINWWEIGHT"].ToString());
                    pws.MaxWeight = double.Parse(dr["FS_BUNDLEMAXWWEIGHT"].ToString());
                }
                catch (Exception ex)
                {
                }
            }
            return(pws);
        }
Example #2
0
        public ProdutionWeightStd GetStandard(string spec, string length)
        {
            ProdutionWeightStd pws = null;
            DataRow[] drs = _dt.Select("FS_SPEC ='" + spec + "' and FN_LENGTH = '"+length+"'");
            if(drs.Length > 0)
            {
                try
                {
                    DataRow dr = drs[0];
                    pws = new ProdutionWeightStd();
                    pws.SeqNo = int.Parse(dr["FN_ID"].ToString());
                    pws.Spec = double.Parse(dr["FS_SPEC"].ToString());
                    pws.Lenght = double.Parse(dr["FN_LENGTH"].ToString());
                    pws.MinWeight = double.Parse(dr["FS_BUNDLEMINWWEIGHT"].ToString());
                    pws.MaxWeight = double.Parse(dr["FS_BUNDLEMAXWWEIGHT"].ToString());
                }
                catch (Exception ex)
                {

                }
            }
            return pws;
        }