Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["id"] != null)
        {
            int id = Convert.ToInt16(Request.QueryString["id"]);
            idnum1.Value = Request.QueryString["id"].ToString();
            StorageManageModel wr = new StorageManageModel();
            DataTable          dt = wr.LossiInforInfo(id);

            Type1.Value    = dt.Rows[0]["Type"].ToString();
            Per1.Value     = dt.Rows[0]["Per"].ToString();
            Reason1.Value  = dt.Rows[0]["Reason"].ToString();
            lossnum1.Value = dt.Rows[0]["lossnum"].ToString();
            Rmarkes1.Value = dt.Rows[0]["remark"].ToString();
        }
    }
Пример #2
0
    public static string lossiInforInfo(int id, string Type, string Per, string Reason, string lossnum, string Rmarkes)
    {
        StorageManageModel wr = new StorageManageModel();
        int result            = wr.LossiInforInfo(id, Type, Per, Reason, lossnum, Rmarkes);

        string str = null;

        if (result == 0)
        {
            str = "0";
        }
        else
        {
            str = "1";
        }

        return(str);
    }