Esempio n. 1
0
        private string GetCurrentUserHis()
        {
            SinoUC_SHInput _control = null;

            switch (UserLevel)
            {
            case "总署缉私局":
                _control = this.sinoUC_SHInput1;
                break;

            case "广东分署缉私局":
                _control = this.sinoUC_SHInput1;
                break;

            case "直属缉私局":
                _control = this.sinoUC_SHInput2;
                break;

            case "缉私分局":
                _control = this.sinoUC_SHInput3;
                break;
            }

            if (_control != null)
            {
                return(_control.GetCurrentWHXH());
            }
            return("");
        }
Esempio n. 2
0
        private void ShowSHXX(DataRow _dr)
        {
            SinoUC_SHInput _control = null;
            string         _jb      = _dr["DWJBFL"].ToString();

            HisWHXH = _dr["WHXH"].ToString();
            switch (_jb)
            {
            case "总署缉私局":
                _control = this.sinoUC_SHInput1;
                break;

            case "广东分署缉私局":
                _control = this.sinoUC_SHInput1;
                break;

            case "直属缉私局":
                _control = this.sinoUC_SHInput2;
                break;

            case "缉私分局":
                _control = this.sinoUC_SHInput3;
                break;
            }

            if (_control != null)
            {
                _control.InitData(_dr);
            }
        }
Esempio n. 3
0
        private void SaveSHData()
        {
            SinoUC_SHInput _control   = null;
            string         _fieldName = "SH_ZONGSJ";

            switch (UserLevel)
            {
            case "总署缉私局":
                _control   = this.sinoUC_SHInput1;
                _fieldName = "SH_ZONGSJ";
                break;

            case "广东分署缉私局":
                _control   = this.sinoUC_SHInput1;
                _fieldName = "SH_ZONGSJ";
                break;

            case "直属缉私局":
                _control   = this.sinoUC_SHInput2;
                _fieldName = "SH_ZHISJ";
                break;

            case "缉私分局":
                _control   = this.sinoUC_SHInput3;
                _fieldName = "SH_FJ";
                break;
            }

            if (_control != null)
            {
                if (_control.SaveData())
                {
                    if (_control.SH_JG == "通过")
                    {
                        this.CurrentRow[_fieldName] = "1";
                    }
                    else
                    {
                        this.CurrentRow[_fieldName] = "2";
                    }
                    this.CurrentRow["GX_STATE"] = 0;
                    this.panelAlert.Visible     = false;
                    ShowData();
                    RaiseMenuChanged();
                }
            }
        }
Esempio n. 4
0
 private void CreateSHMsg(SinoUC_SHInput _shInput, string _title, string _msg)
 {
     _shInput.SendMsg(_title, _msg);
 }