コード例 #1
0
        public static string GetIgst_Name(string _pName)
        {
            Product obj = CProduct_exten.SearchName(_pName, new DAL());

            if (obj != null)
            {
                return(obj.Igst_percent);
            }
            return("");
        }
コード例 #2
0
        public static string GetHsncode_name(string name)
        {
            Product obj = CProduct_exten.SearchName(name, new DAL());

            if (obj != null)
            {
                return(obj.Hsncode_id);
            }
            return("");
        }
コード例 #3
0
ファイル: VLProduct.cs プロジェクト: CODEXSUN/codexdotnet
        public void List_Option(ListOption pAction)
        {
            fAction = pAction;

            switch (fAction)
            {
            case ListOption.active:

                if (chk_notactive.Checked == true)
                {
                    LoadData(CProduct_exten.NotActive(new DAL()));
                }
                else
                {
                    LoadData(CProduct_exten.Active(new DAL()));
                }

                break;

            case ListOption.notactive:

                if (chk_notactive.Checked == true)
                {
                    LoadData(CProduct_exten.NotActive(new DAL()));
                }
                else
                {
                    LoadData(CProduct_exten.Active(new DAL()));
                }

                break;

            case ListOption.Search:
                if (txt_product_name.Text != "")
                {
                    List <Product> list = new List <Product>
                    {
                        CProduct_exten.SearchName(txt_product_name.Text, new DAL())
                    };
                    LoadData(list);
                }
                else
                {
                    LoadData(CProduct_exten.Active(new DAL()));
                }
                break;

            default:
                LoadData(CProduct_exten.Active(new DAL()));
                break;
            }
        }