예제 #1
0
        public void AddDof3a()
        {
            int productId = int.Parse(Request.Form["id"]);
            int cost = int.Parse(Request.Form["cost"]);

            DateTime date;
            CultureInfo enUS = new CultureInfo("en-US");
            DateTime.TryParseExact(Request.Form["date"], "yyyy-MM-dd", enUS,
                        DateTimeStyles.None, out date);
            CompanyClass com = new CompanyClass();
            int productPayId = 0;
            if (com.AddDof3a(productId, cost, date , out productPayId))
            {
                Response.Write("success," + productPayId);
            }
            else
            {
                Response.Write("fail");
            }
        }