コード例 #1
0
    public static bool DeleteData(string No)
    {
        bool isOk = false;

        if (HttpContext.Current.Session["user"] == null)
        {
            return(isOk);
        }
        PostDataADO post = new PostDataADO();

        post.DeleteDataPhonebook(No);
        isOk = true;
        return(isOk);
    }
コード例 #2
0
    public static bool UpdateData(string No, string Name, string PhoneNo, string Alert, string Alarm1, string Alarm2, string Work, string Fail, string Email)
    {
        bool isOk = false;

        if (HttpContext.Current.Session["user"] == null)
        {
            return(isOk);
        }
        PostDataADO   post = new PostDataADO();
        PhoneBookData data = new PhoneBookData(Convert.ToInt32(No), Name, PhoneNo, Alert, Alarm1, Alarm2, Work, Fail, Email);

        post.UpdateDataPhonebook(data);
        isOk = true;
        return(isOk);
    }
コード例 #3
0
ファイル: ELP.aspx.cs プロジェクト: petersantoso94/geoscience
    public static bool UpdateData(string date, string pointNo, string meaNo, string read1, string read2, string read3, string value, string initial, string normal, string reM, string sensor)
    {
        bool isOk = false;

        if (HttpContext.Current.Session["user"] == null)
        {
            return(isOk);
        }
        PostDataADO post = new PostDataADO();
        ELPData     data = new ELPData(date, pointNo, meaNo, read1, read2, read3, value, initial, normal, reM, sensor);

        post.UpdateDataELP(data);
        isOk = true;
        return(isOk);
    }
コード例 #4
0
    public static bool UpdateData(string pointNo, string station, string area, string factor1, string factor2, string factor3, string iniRead1, string iniRead2, string iniRead3, string insDate, string iniDate, string alert, string alarm, string action, string rem1, string rem2, string rem3)
    {
        bool isOk = false;

        if (HttpContext.Current.Session["user"] == null)
        {
            return(isOk);
        }
        PostDataADO post = new PostDataADO();
        PosData     data = new PosData(pointNo, station, area, factor1, factor2, factor3, iniRead1, iniRead2, iniRead3, insDate, iniDate, alert, alarm, action, rem1, rem2, rem3);

        post.UpdateDataPos(data);
        isOk = true;
        return(isOk);
    }